Index: trunk/extensions/CategoryMultisort/CategoryMultisort.hooks.php |
— | — | @@ -193,10 +193,10 @@ |
194 | 194 | $nt = Title::makeTitleSafe( NS_CATEGORY, $cat ); |
195 | 195 | $wgContLang->findVariantLink( $cat, $nt, true ); |
196 | 196 | $arr[] = array( |
197 | | - 'clms_from' => $linksUpdate->mId, |
198 | | - 'clms_to' => $cat, |
| 197 | + 'clms_from' => $linksUpdate->mId, |
| 198 | + 'clms_to' => $cat, |
199 | 199 | 'clms_sortkey_name' => $skn, |
200 | | - 'clms_sortkey' => $skv, |
| 200 | + 'clms_sortkey' => $skv, |
201 | 201 | ); |
202 | 202 | } |
203 | 203 | |
— | — | @@ -229,7 +229,7 @@ |
230 | 230 | } |
231 | 231 | |
232 | 232 | function parserCategoryLink( |
233 | | - $parser, $holders, $markers, $title, $titleText, &$sortText = null, &$leadingColon = false |
| 233 | + $parser, $holders, $markers, $title, $titleText, &$sortText = null, &$leadingColon = false |
234 | 234 | ) { |
235 | 235 | global $wgContLang; |
236 | 236 | |
— | — | @@ -259,6 +259,7 @@ |
260 | 260 | $sort = null; |
261 | 261 | } |
262 | 262 | if ( is_callable( $this->coreCategoryLinkHook ) ) { |
| 263 | + # Will it return any error message? |
263 | 264 | call_user_func_array( $this->coreCategoryLinkHook, array( |
264 | 265 | $parser, $holders, $markers, $title, $titleText, &$sort, &$leadingColon |
265 | 266 | ) ); |
— | — | @@ -313,7 +314,7 @@ |
314 | 315 | $args = func_get_args(); |
315 | 316 | $parser = array_shift( $args ); |
316 | 317 | $categoryDefaultMultisorts = &$parser->getOutput()->mCategoryDefaultMultisorts; |
317 | | - |
| 318 | + |
318 | 319 | foreach ( $this->parseMultisortArgs( $args ) as $skn => $skv ) { |
319 | 320 | $categoryDefaultMultisorts[$skn] = $skv; |
320 | 321 | } |