Permalink
Browse files

MINOR: Minor fixes after new SS_List interfaces cleanup

  • Loading branch information...
1 parent 83bfe54 commit adbcf61c56cc5f536df61a842037ffda8a19a471 @sminnee sminnee committed Mar 9, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 core/Object.php
  2. +1 −1 forms/gridfield/GridField.php
  3. +1 −1 model/ListDecorator.php
View
@@ -605,7 +605,7 @@ public static function remove_extension($class, $extension) {
user_error("Bad extension '$extension'", E_USER_WARNING);
} else {
$extensionClass = $matches[1];
- DataObjectDecorator::unload_extra_statics($class, $extensionClass);
+ DataExtension::unload_extra_statics($class, $extensionClass);
}
}
@@ -650,7 +650,7 @@ public function handleAction($actionName, $args, $data) {
continue;
}
- if(is_array($component->getActions($this)) && in_array($actionName, array_map('strtolower', $component->getActions($this)))) {
+ if(in_array($actionName, array_map('strtolower', (array)$component->getActions($this)))) {
return $component->handleAction($this, $actionName, $args, $data);
}
}
View
@@ -137,7 +137,7 @@ public function filter(){
}
public function limit($limit, $offset = 0) {
- return $this->list->getRange($length, $offset);
+ return $this->list->limit($limit, $offset);
}
/**

0 comments on commit adbcf61

Please sign in to comment.