mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Declare StaticPublisher::set_static_publisher_theme() and
StaticPublisher::static_publisher_theme() as static, since they're only called statically. This is a fix for E_STRICT compliance.
This commit is contained in:
parent
03a8aa546e
commit
5e567cbf80
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user