r36424 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36423‎ | r36424 | r36425 >
Date:16:08, 18 June 2008
Author:yaron
Status:old
Tags:
Comment:
Fixed handling of autocompletion on main namespace
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php
@@ -51,6 +51,9 @@
5252 } elseif ($category != '') {
5353 $data = sffGetAllPagesForCategory($category, 3, $substr);
5454 } elseif ($namespace != '') {
 55+ // special handling for main (blank) namespace
 56+ if ($namespace == 'main')
 57+ $namespace = '';
5558 $data = sffGetAllPagesForNamespace($namespace, $substr);
5659 } else {
5760 $date = array();

Status & tagging log