Skip to content

Commit

Permalink
MINOR: Minor fixes after new SS_List interfaces cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee committed Mar 9, 2012
1 parent 83bfe54 commit adbcf61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion forms/gridfield/GridField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion model/ListDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit adbcf61

Please sign in to comment.