r77398 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77397‎ | r77398 | r77399 >
Date:17:06, 28 November 2010
Author:yaron
Status:deferred
Tags:
Comment:
Changed 'autocomplete on category=' to display the full name of the page (including namespace)
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.php
@@ -294,7 +294,8 @@
295295 $newcategories[] = $new_category;
296296 }
297297 } else {
298 - $cur_value = str_replace( "_", " ", $row['page_title'] );
 298+ $cur_title = Title::makeTitleSafe( $row['page_namespace'], $row['page_title'] );
 299+ $cur_value = SFLinkUtils::titleString( $cur_title );
299300 if ( ! in_array( $cur_value, $pages ) ) {
300301 if ( $substring == null )
301302 $pages[] = $cur_value;

Status & tagging log