Index: trunk/extensions/Wikidata/App.php |
— | — | @@ -120,7 +120,7 @@ |
121 | 121 | |
122 | 122 | function wdIsWikidataNs() { |
123 | 123 | global $wgTitle; |
124 | | - $ns=MWNamespace::get($wgTitle->getNamespace()); |
| 124 | + $ns=Namespace::get($wgTitle->getNamespace()); |
125 | 125 | return |
126 | 126 | ($ns->getHandlerClass()=='OmegaWiki' || $ns->getHandlerClass()=='DefinedMeaning' || $ns->getHandlerClass()=='ExpressionPage'); |
127 | 127 | |
— | — | @@ -155,7 +155,7 @@ |
156 | 156 | function modifyTabs($skin, $content_actions) { |
157 | 157 | global $wgUser, $wgTitle, $wdTesting, $wgCommunity_dc, $wdShowEditCopy; |
158 | 158 | $dc=wdGetDataSetContext(); |
159 | | - $ns=MWNamespace::get($wgTitle->getNamespace()); |
| 159 | + $ns=Namespace::get($wgTitle->getNamespace()); |
160 | 160 | $editChanged = false; |
161 | 161 | if($ns->getHandlerClass()=='DefinedMeaning') { |
162 | 162 | |
Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataAPI.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | function createPage() { |
32 | | - $expressionNameSpaceId = MWNamespace::getIndexForName('expression'); |
| 32 | + $expressionNameSpaceId = Namespace::getIndexForName('expression'); |
33 | 33 | wfDebug("NS ID: $expressionNameSpaceId \n"); |
34 | 34 | return createPage($expressionNameSpaceId, getPageTitle($this->spelling)); |
35 | 35 | } |
— | — | @@ -768,7 +768,7 @@ |
769 | 769 | } |
770 | 770 | |
771 | 771 | function addDefinedMeaning($definingExpressionId) { |
772 | | - $definedMeaningNameSpaceId = MWNamespace::getIndexForName('definedmeaning'); |
| 772 | + $definedMeaningNameSpaceId = Namespace::getIndexForName('definedmeaning'); |
773 | 773 | $dc=wdGetDataSetContext(); |
774 | 774 | |
775 | 775 | $definedMeaningId = newObjectId("{$dc}_defined_meaning"); |