mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +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
|
* Returns the Breadcrumbs for the ReportAdmin
|
||||||
* @return ArrayList
|
* @return ArrayList
|
||||||
*/
|
*/
|
||||||
public function Breadcrumbs() {
|
public function Breadcrumbs($unlinked = false) {
|
||||||
$items = parent::Breadcrumbs();
|
$items = parent::Breadcrumbs($unlinked);
|
||||||
|
|
||||||
// The root element should explicitly point to the root node.
|
// The root element should explicitly point to the root node.
|
||||||
// Uses session state for current record otherwise.
|
// Uses session state for current record otherwise.
|
||||||
|
@ -26,7 +26,15 @@ abstract class StaticPublisher extends DataExtension {
|
|||||||
|
|
||||||
abstract function publishPages($pages);
|
abstract function publishPages($pages);
|
||||||
abstract function unpublishPages($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() {
|
static function echo_progress() {
|
||||||
return (boolean)self::$echo_progress;
|
return (boolean)self::$echo_progress;
|
||||||
}
|
}
|
||||||
@ -144,13 +152,6 @@ abstract class StaticPublisher extends DataExtension {
|
|||||||
|
|
||||||
return $urls;
|
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;
|
return $this->form->getRecord()->getComponent($relationName)->ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveInto(DataObject $record) {
|
function saveInto(DataObjectInterface $record) {
|
||||||
$name = $this->name;
|
$name = $this->name;
|
||||||
$idName = $name . "ID";
|
$idName = $name . "ID";
|
||||||
|
|
||||||
@ -139,4 +139,4 @@ class WidgetAreaEditor extends FormField {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user