summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageSr.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageSr.php')
-rw-r--r--languages/classes/LanguageSr.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/languages/classes/LanguageSr.php b/languages/classes/LanguageSr.php
index d57c733d..cac82ce7 100644
--- a/languages/classes/LanguageSr.php
+++ b/languages/classes/LanguageSr.php
@@ -92,7 +92,7 @@ class SrConverter extends LanguageConverter {
* names as they were
* - do not try to find variants for usernames
*/
- function findVariantLink( &$link, &$nt ) {
+ function findVariantLink( &$link, &$nt, $forTemplate = false ) {
// check for user namespace
if(is_object($nt)){
$ns = $nt->getNamespace();
@@ -101,7 +101,7 @@ class SrConverter extends LanguageConverter {
}
$oldlink=$link;
- parent::findVariantLink($link,$nt);
+ parent::findVariantLink( $link, $nt, $forTemplate );
if($this->getPreferredVariant()==$this->mMainLanguageCode)
$link=$oldlink;
}
@@ -122,7 +122,7 @@ class SrConverter extends LanguageConverter {
*/
function autoConvert($text, $toVariant=false) {
global $wgTitle;
- if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_IMAGE){
+ if(is_object($wgTitle) && $wgTitle->getNameSpace()==NS_FILE){
$imagename = $wgTitle->getNsText();
if(preg_match("/^$imagename:/",$text)) return $text;
}