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

Revision: 93547
Author:   kipcool
Date:     2011-07-30 18:03:45 +0000 (Sat, 30 Jul 2011)
Log Message:
-----------
oops

Modified Paths:
--------------
    trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php

Modified: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php
===================================================================
--- trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php      2011-07-30 
17:58:29 UTC (rev 93546)
+++ trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php      2011-07-30 
18:03:45 UTC (rev 93547)
@@ -247,8 +247,9 @@
                        // find the language of the syntrans and add attributes 
of that language by adding the language DM to the list of default classes
                        // this first query returns the language_id
                        $sql = 'SELECT language_id' .
-                               " FROM {$dc}_syntrans" .
+                               " FROM {$dc}_syntrans, {$dc}_expression" .
                                " WHERE {$dc}_syntrans.syntrans_sid = " . 
$syntransId .
+                               " AND {$dc}_expression.expression_id = 
{$dc}_syntrans.expression_id " .
                                " LIMIT 1 " ;
                        $lang_res = $dbr->query( $sql );
                        $language_id = $dbr->fetchObject( $lang_res 
)->language_id;


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

Reply via email to