Permalink
Browse files

MINOR Fixing method signatures not compliant with the parent

  • Loading branch information...
1 parent 5e567cb commit 8325d73665b6c47edae3f3b9756314d8e368adff @halkyon halkyon committed Apr 11, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 code/controllers/ReportAdmin.php
  2. +2 −2 code/widgets/WidgetAreaEditor.php
View
4 code/controllers/ReportAdmin.php
@@ -108,8 +108,8 @@ public static function has_reports() {
* Returns the Breadcrumbs for the ReportAdmin
* @return ArrayList
*/
- public function Breadcrumbs() {
- $items = parent::Breadcrumbs();
+ public function Breadcrumbs($unlinked = false) {
+ $items = parent::Breadcrumbs($unlinked);
// The root element should explicitly point to the root node.
// Uses session state for current record otherwise.
View
4 code/widgets/WidgetAreaEditor.php
@@ -61,7 +61,7 @@ function Value() {
return $this->form->getRecord()->getComponent($relationName)->ID;
}
- function saveInto(DataObject $record) {
+ function saveInto(DataObjectInterface $record) {
$name = $this->name;
$idName = $name . "ID";
@@ -139,4 +139,4 @@ function saveInto(DataObject $record) {
}
}
}
-}
+}

0 comments on commit 8325d73

Please sign in to comment.