From: <var...@us...> - 2014-09-18 13:32:16
|
Revision: 9089 http://sourceforge.net/p/phpwiki/code/9089 Author: vargenau Date: 2014-09-18 13:32:14 +0000 (Thu, 18 Sep 2014) Log Message: ----------- Add static, type compatibility Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2014-09-18 13:31:16 UTC (rev 9088) +++ trunk/lib/PageList.php 2014-09-18 13:32:14 UTC (rev 9089) @@ -595,7 +595,7 @@ public $_sortby = array(); public $_maxlen = 0; - function __construct($columns = false, $exclude = false, $options = false) + function __construct($columns = false, $exclude = false, $options = array()) { // unique id per pagelist on each page. if (!isset($GLOBALS['request']->_pagelist)) @@ -703,7 +703,7 @@ // 1: info, 2: exclude, 3: hash of options // Here we declare which options are supported, so that // the calling plugin may simply merge this with its own default arguments - function supportedArgs() + static function supportedArgs() { // Todo: add all supported Columns, like locked, minor, ... return array( // Currently supported options: @@ -1830,7 +1830,7 @@ extends PageList { - function __construct($columns = false, $exclude = '', $options = false) + function __construct($columns = false, $exclude = '', $options = array()) { if ($columns) { if (!is_array($columns)) @@ -1861,7 +1861,7 @@ extends PageList { - function __construct($columns = false, $exclude = '', $options = false) + function __construct($columns = false, $exclude = '', $options = array()) { if ($columns) { if (!is_array($columns)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |