http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89203
Revision: 89203
Author: yaron
Date: 2011-05-31 04:36:19 +0000 (Tue, 31 May 2011)
Log Message:
-----------
Fixes for bugs in r89200
Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_Utils.php
Modified: trunk/extensions/SemanticForms/includes/SF_Utils.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_Utils.php 2011-05-31
04:24:08 UTC (rev 89202)
+++ trunk/extensions/SemanticForms/includes/SF_Utils.php 2011-05-31
04:36:19 UTC (rev 89203)
@@ -99,12 +99,12 @@
$values = array();
foreach ( $res as $value ) {
if ( method_exists( $value, 'getTitle' ) ) {
- $title = $value->getTitle();
- if ( !is_null( $title ) ) {
- $values[] = $title->getText();
+ $valueTitle = $value->getTitle();
+ if ( !is_null( $valueTitle ) ) {
+ $values[] =
$valueTitle->getText();
}
} else {
- $values[] = str_replace( '_' , ' ',
$title->getWikiValue() );
+ $values[] = str_replace( '_' , ' ',
$value->getWikiValue() );
}
}
return array_unique( $values );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs