r62159 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62158‎ | r62159 | r62160 >
Date:02:14, 9 February 2010
Author:yaron
Status:deferred
Tags:
Comment:
Fix for non-English-language wikis
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc
@@ -82,7 +82,7 @@
8383 foreach ($res as $wiki_page_value)
8484 $form_names[] = $wiki_page_value->getTitle()->getText();
8585 // if we're using a non-English language, check for the English string as well
86 - if (! $sfgContLang instanceof SF_LanguageEn) {
 86+ if (! class_exists('SF_LanguageEn') || ! $sfgContLang instanceof SF_LanguageEn) {
8787 $backup_property = SMWPropertyValue::makeProperty($backup_prop_smw_id);
8888 $res = $store->getPropertyValues($title, $backup_property);
8989 foreach ($res as $wiki_page_value)

Status & tagging log