From: Brian Wolff Date: Wed, 19 Dec 2012 22:59:47 +0000 (-0400) Subject: (bug 37195) Doc fix. $from and $until are arrays since 1.17. X-Git-Tag: 1.31.0-rc.0~21257^2 X-Git-Url: http://git.cyclocoop.org///%22%40url%40//%22?a=commitdiff_plain;h=00dfa0d781059e02b4993b99de4faaedc8687cb9;p=lhc%2Fweb%2Fwiklou.git (bug 37195) Doc fix. $from and $until are arrays since 1.17. This makes $from and $until of the constructor be documented as arrays instead of strings. It also changes the default to be an empty array instead of the empty string. In theory this could use some back-compat code, but the change was made way back in 1.17 so I don't think there's a point. Change-Id: I6f995ea925960b90bc4a458db5af4f7aa768c1ae --- diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index b59b4e1afe..b3741f8a77 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -71,11 +71,12 @@ class CategoryViewer extends ContextSource { * @since 1.19 $context is a second, required parameter * @param $title Title * @param $context IContextSource - * @param $from String - * @param $until String + * @param $from Array An array with keys page, subcat, + * and file for offset of results of each section (since 1.17) + * @param $until Array An array with 3 keys for until of each section (since 1.17) * @param $query Array */ - function __construct( $title, IContextSource $context, $from = '', $until = '', $query = array() ) { + function __construct( $title, IContextSource $context, $from = array(), $until = array(), $query = array() ) { global $wgCategoryPagingLimit; $this->title = $title; $this->setContext( $context );