Index: trunk/phase3/js2/mwEmbed/jsScriptLoader.php |
— | — | @@ -204,8 +204,9 @@ |
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 | 211 | $doAddWT = true; |
211 | 212 | } |
212 | 213 | } |