mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Merge pull request #93 from halkyon/e_strict_fixes
E_STRICT compliance fixes for CMS module
This commit is contained in:
commit
117b8c3f97
@ -108,8 +108,8 @@ class ReportAdmin extends LeftAndMain implements PermissionProvider {
|
||||
* 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.
|
||||
|
@ -26,7 +26,15 @@ abstract class StaticPublisher extends DataExtension {
|
||||
|
||||
abstract function publishPages($pages);
|
||||
abstract function unpublishPages($pages);
|
||||
|
||||
static function set_static_publisher_theme($theme){
|
||||
self::$static_publisher_theme=$theme;
|
||||
}
|
||||
|
||||
static function static_publisher_theme(){
|
||||
return self::$static_publisher_theme;
|
||||
}
|
||||
|
||||
static function echo_progress() {
|
||||
return (boolean)self::$echo_progress;
|
||||
}
|
||||
@ -144,13 +152,6 @@ abstract class StaticPublisher extends DataExtension {
|
||||
|
||||
return $urls;
|
||||
}
|
||||
|
||||
function set_static_publisher_theme($theme){
|
||||
self::$static_publisher_theme=$theme;
|
||||
}
|
||||
|
||||
function static_publisher_theme(){
|
||||
return self::$static_publisher_theme;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ class WidgetAreaEditor extends FormField {
|
||||
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 @@ class WidgetAreaEditor extends FormField {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user