Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -849,7 +849,7 @@ |
850 | 850 | } |
851 | 851 | } |
852 | 852 | $t = wfMsgForContent( 'coll-bookscategory' ); |
853 | | - if ( $t && $t != '-' ) { |
| 853 | + if ( !wfEmptyMsg( 'coll-bookscategory', $t ) && $t != '-' ) { |
854 | 854 | $catTitle = Title::makeTitle( NS_CATEGORY, $t ); |
855 | 855 | if ( !is_null( $catTitle ) ) { |
856 | 856 | $articleText .= "\n[[" . $catTitle->getPrefixedText() . "|" . wfEscapeWikiText( $title->getSubpageText() ) . "]]\n"; |
— | — | @@ -882,7 +882,7 @@ |
883 | 883 | ); |
884 | 884 | |
885 | 885 | $from_msg = wfMsgForContent( 'coll-license_url' ); |
886 | | - if ( $from_msg && $from_msg != '-' ) { |
| 886 | + if ( !wfEmptyMsg( 'coll-license_url', $from_msg ) && $from_msg != '-' ) { |
887 | 887 | $licenseInfo['mw_license_url'] = $from_msg; |
888 | 888 | return array( $licenseInfo ); |
889 | 889 | } |
Index: trunk/extensions/Collection/Collection.templates.php |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | |
181 | 181 | <?php |
182 | 182 | $t = wfMsgForContent('coll-bookscategory'); |
183 | | - if ( $t && $t != '-') { |
| 183 | + if ( !wfEmtpyMsg('coll-bookscategory', $t) && $t != '-') { |
184 | 184 | $this->msgWiki('coll-save_category'); |
185 | 185 | } |
186 | 186 | ?> |