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
|
||||
* @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.
|
||||
|
@ -27,6 +27,14 @@ 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;
|
||||
}
|
||||
@ -145,12 +153,5 @@ 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";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user