Index: branches/SerbianVariants/phase3/includes/Article.php |
— | — | @@ -329,7 +329,7 @@ |
330 | 330 | $this->mLatest = $data->page_latest; |
331 | 331 | $this->mNoTitleConvert = $data->page_no_title_convert; |
332 | 332 | |
333 | | - if($this->mNoTitleConvert && sizeof($wgContLang->getVariants())>1) |
| 333 | + if($this->mNoTitleConvert) |
334 | 334 | $wgContLang->setNoTitleConvert(); |
335 | 335 | } else { |
336 | 336 | if ( is_object( $this->mTitle ) ) { |
— | — | @@ -1040,14 +1040,16 @@ |
1041 | 1041 | $conditions, |
1042 | 1042 | __METHOD__ ); |
1043 | 1043 | |
| 1044 | + $succ = $dbw->affectedRows() != 0; |
| 1045 | + |
1044 | 1046 | // check if no title magic word has been changed |
1045 | | - if($this->mNoTitleConvert != $this->mNoTitleConvertParser){ |
| 1047 | + if($succ && $this->mNoTitleConvert != $this->mNoTitleConvertParser){ |
1046 | 1048 | // Clear caches |
1047 | 1049 | Article::onArticleCreate( $this->mTitle ); |
1048 | 1050 | } |
1049 | 1051 | |
1050 | 1052 | wfProfileOut( __METHOD__ ); |
1051 | | - return ( $dbw->affectedRows() != 0 ); |
| 1053 | + return $succ; |
1052 | 1054 | } |
1053 | 1055 | |
1054 | 1056 | /** |
Index: branches/SerbianVariants/phase3/languages/MessagesSr_el.php |
— | — | @@ -175,7 +175,7 @@ |
176 | 176 | 'servername' => array( 0, 'SERVERNAME', 'IMESERVERA' ), |
177 | 177 | 'scriptpath' => array( 0, 'SCRIPTPATH', 'SKRIPTA' ), |
178 | 178 | 'grammar' => array( 0, 'GRAMMAR:', 'GRAMATIKA:' ), |
179 | | - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__BEZTC__' ), |
| 179 | + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗКН__', '__BEZKN__' ), |
180 | 180 | 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__BEZCC__' ), |
181 | 181 | 'currentweek' => array( 1, 'CURRENTWEEK', 'TRENUTNANEDELjA' ), |
182 | 182 | 'currentdow' => array( 1, 'CURRENTDOW', 'TRENUTNIDOV' ), |
Index: branches/SerbianVariants/phase3/languages/Language.php |
— | — | @@ -738,7 +738,7 @@ |
739 | 739 | |
740 | 740 | function ucwordsCallbackWiki($matches){ |
741 | 741 | global $wikiUpperChars; |
742 | | - return strtr( "$matches[0]" , $wikiUpperChars ); |
| 742 | + return strtr( $matches[0] , $wikiUpperChars ); |
743 | 743 | } |
744 | 744 | |
745 | 745 | function ucfirst( $str ) { |
Index: branches/SerbianVariants/phase3/languages/MessagesSr_ec.php |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | 'servername' => array( 0, 'SERVERNAME', 'ИМЕСЕРВЕРА' ), |
175 | 175 | 'scriptpath' => array( 0, 'SCRIPTPATH', 'СКРИПТА' ), |
176 | 176 | 'grammar' => array( 0, 'GRAMMAR:', 'ГРАМАТИКА:' ), |
177 | | - 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗТЦ__' ), |
| 177 | + 'notitleconvert' => array( 0, '__NOTITLECONVERT__', '__NOTC__', '__БЕЗКН__', '__BEZKN__' ), |
178 | 178 | 'nocontentconvert' => array( 0, '__NOCONTENTCONVERT__', '__NOCC__', '__БЕЗЦЦ__' ), |
179 | 179 | 'currentweek' => array( 1, 'CURRENTWEEK', 'ТРЕНУТНАНЕДЕЉА' ), |
180 | 180 | 'currentdow' => array( 1, 'CURRENTDOW', 'ТРЕНУТНИДОВ' ), |