Index: trunk/phase3/js2/mwEmbed/jsScriptLoader.php |
— | — | @@ -204,8 +204,8 @@ |
205 | 205 | //make sure its a valid wikipage before doing processing |
206 | 206 | $t = Title::newFromDBkey( substr( $reqClass, 3) ); |
207 | 207 | if( $t->exists() |
208 | | - && $t->getNamespace == NS_MEDIAWIKI |
209 | | - && $t->getNamespace == NS_USER){ |
| 208 | + && $t->getNamespace() == NS_MEDIAWIKI |
| 209 | + && $t->getNamespace() == NS_USER){ |
210 | 210 | $doAddWT = true; |
211 | 211 | } |
212 | 212 | } |
— | — | @@ -231,7 +231,7 @@ |
232 | 232 | } |
233 | 233 | } |
234 | 234 | |
235 | | - |
| 235 | + |
236 | 236 | // Add the language code to the rKey: |
237 | 237 | $this->rKey .= '_' . $wgContLanguageCode; |
238 | 238 | |