Index: trunk/extensions/DiscussionThreading/REV1_9_3/includes/Linker.php |
— | — | @@ -910,7 +910,7 @@ |
911 | 911 | |
912 | 912 | # format regular and media links - all other wiki formatting |
913 | 913 | # is ignored |
914 | | - $medians = '(?:' . preg_quote( Namespace::getCanonicalName( NS_MEDIA ), '/' ) . '|'; |
| 914 | + $medians = '(?:' . preg_quote( MWNamespace::getCanonicalName( NS_MEDIA ), '/' ) . '|'; |
915 | 915 | $medians .= preg_quote( $wgContLang->getNsText( NS_MEDIA ), '/' ) . '):'; |
916 | 916 | while(preg_match('/\[\[:?(.*?)(\|(.*?))*\]\](.*)$/',$comment,$match)) { |
917 | 917 | # Handle link renaming [[foo|text]] will show link as "text" |
Index: trunk/extensions/DiscussionThreading/REV1_10_0/includes/Linker.php |
— | — | @@ -861,7 +861,7 @@ |
862 | 862 | |
863 | 863 | # format regular and media links - all other wiki formatting |
864 | 864 | # is ignored |
865 | | - $medians = '(?:' . preg_quote( Namespace::getCanonicalName( NS_MEDIA ), '/' ) . '|'; |
| 865 | + $medians = '(?:' . preg_quote( MWNamespace::getCanonicalName( NS_MEDIA ), '/' ) . '|'; |
866 | 866 | $medians .= preg_quote( $wgContLang->getNsText( NS_MEDIA ), '/' ) . '):'; |
867 | 867 | while(preg_match('/\[\[:?(.*?)(\|(.*?))*\]\](.*)$/',$comment,$match)) { |
868 | 868 | # Handle link renaming [[foo|text]] will show link as "text" |
Index: trunk/extensions/DiscussionThreading/REV1_10_1/includes/Linker.php |
— | — | @@ -861,7 +861,7 @@ |
862 | 862 | |
863 | 863 | # format regular and media links - all other wiki formatting |
864 | 864 | # is ignored |
865 | | - $medians = '(?:' . preg_quote( Namespace::getCanonicalName( NS_MEDIA ), '/' ) . '|'; |
| 865 | + $medians = '(?:' . preg_quote( MWNamespace::getCanonicalName( NS_MEDIA ), '/' ) . '|'; |
866 | 866 | $medians .= preg_quote( $wgContLang->getNsText( NS_MEDIA ), '/' ) . '):'; |
867 | 867 | while(preg_match('/\[\[:?(.*?)(\|(.*?))*\]\](.*)$/',$comment,$match)) { |
868 | 868 | # Handle link renaming [[foo|text]] will show link as "text" |
Index: trunk/extensions/Wikidata/OmegaWiki/WikiDataAPI.php |
— | — | @@ -28,7 +28,7 @@ |
29 | 29 | } |
30 | 30 | |
31 | 31 | function createPage() { |
32 | | - $expressionNameSpaceId = Namespace::getCanonicalIndex('expression'); |
| 32 | + $expressionNameSpaceId = MWNamespace::getCanonicalIndex('expression'); |
33 | 33 | wfDebug( "NS ID: $expressionNameSpaceId \n" ); |
34 | 34 | return createPage( $expressionNameSpaceId, getPageTitle( $this->spelling ) ); |
35 | 35 | } |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | |
189 | 189 | function createExpression( $spelling, $languageId ) { |
190 | 190 | $expression = new Expression( createExpressionId( $spelling, $languageId ), $spelling, $languageId ); |
191 | | - $expressionTitle = Title::makeTitle( Namespace::getCanonicalIndex('expression') , $spelling ); |
| 191 | + $expressionTitle = Title::makeTitle( MWNamespace::getCanonicalIndex('expression') , $spelling ); |
192 | 192 | if( !$expressionTitle->exists() ) { |
193 | 193 | $expression->createNewInDatabase(); |
194 | 194 | } |