http://www.mediawiki.org/wiki/Special:Code/MediaWiki/62159

Revision: 62159
Author:   yaron
Date:     2010-02-09 02:14:21 +0000 (Tue, 09 Feb 2010)

Log Message:
-----------
Fix for non-English-language wikis

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc

Modified: trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc    2010-02-09 
02:11:16 UTC (rev 62158)
+++ trunk/extensions/SemanticForms/includes/SF_LinkUtils.inc    2010-02-09 
02:14:21 UTC (rev 62159)
@@ -82,7 +82,7 @@
                foreach ($res as $wiki_page_value)
                        $form_names[] = $wiki_page_value->getTitle()->getText();
                // if we're using a non-English language, check for the English 
string as well
-               if (! $sfgContLang instanceof SF_LanguageEn) {
+               if (! class_exists('SF_LanguageEn') || ! $sfgContLang 
instanceof SF_LanguageEn) {
                        $backup_property = 
SMWPropertyValue::makeProperty($backup_prop_smw_id);
                        $res = $store->getPropertyValues($title, 
$backup_property);
                        foreach ($res as $wiki_page_value)



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to