Index: branches/wmf-deployment/extensions/Collection/Collection.i18n.php |
— | — | @@ -2711,7 +2711,7 @@ |
2712 | 2712 | 'coll-return_to' => 'Vrati se na [[:$1]]', |
2713 | 2713 | 'coll-more_info' => 'Prikaži više informacija', |
2714 | 2714 | 'coll-hide_info' => 'Sakrij informacije', |
2715 | | - 'coll-order_info_article' => '{{MediaWiki:Coll-Helppage}}/informacije o narudžbi PediaPressa', |
| 2715 | + 'coll-order_info_article' => '{{MediaWiki:Coll-helppage}}/informacije o narudžbi PediaPressa', |
2716 | 2716 | ); |
2717 | 2717 | |
2718 | 2718 | /** Upper Sorbian (Hornjoserbsce) |
Index: branches/wmf-deployment/extensions/Collection/Collection.templates.php |
— | — | @@ -70,8 +70,7 @@ |
71 | 71 | </div> |
72 | 72 | <?php |
73 | 73 | $t = Title::newFromText(wfMsgForContent('coll-order_info_article')); |
74 | | -$a = new Article($t); |
75 | | -if ( $a->exists() ) { ?> |
| 74 | +if ( $t && $t->exists() ) { ?> |
76 | 75 | <div id="coll-more_info" style="display:none"> |
77 | 76 | <a href="javascript:void(0)" onclick="coll_toggle_order_info(true);"><?php $this->msgWiki('coll-more_info') ?></a> |
78 | 77 | </div> |
— | — | @@ -83,7 +82,7 @@ |
84 | 83 | <?php } ?> |
85 | 84 | </div> |
86 | 85 | <?php |
87 | | -if ($a->exists() ) { ?> |
| 86 | +if ($t && $t->exists() ) { ?> |
88 | 87 | <div id="coll-order_info" style="display:none; margin-top: 2em;"> |
89 | 88 | <?php |
90 | 89 | echo $GLOBALS['wgParser']->parse('{{:' . $t . '}}', |
— | — | @@ -382,8 +381,7 @@ |
383 | 382 | )->getText(); |
384 | 383 | $title_string = wfMsgForContent('coll-template_blacklist_title'); |
385 | 384 | $t = Title::newFromText($title_string); |
386 | | -$a = new Article($t); |
387 | | -if ( $a->exists() ) { |
| 385 | +if ( $t && $t->exists() ) { |
388 | 386 | echo $GLOBALS['wgParser']->parse( |
389 | 387 | wfMsgNoTrans('coll-blacklisted-templates', $title_string), |
390 | 388 | $GLOBALS['wgTitle'], |