Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -848,9 +848,12 @@ |
849 | 849 | //$articleText .= $item['revision'] . "/" . $item['latest']."\n"; |
850 | 850 | } |
851 | 851 | } |
852 | | - $catTitle = Title::makeTitle( NS_CATEGORY, wfMsgForContent( 'coll-bookscategory' ) ); |
853 | | - if ( !is_null( $catTitle ) ) { |
854 | | - $articleText .= "\n[[" . $catTitle->getPrefixedText() . "|" . wfEscapeWikiText( $title->getSubpageText() ) . "]]\n"; |
| 852 | + $t = wfMsgForContent( 'coll-bookscategory' ); |
| 853 | + if ( $t && $t != '-' ) { |
| 854 | + $catTitle = Title::makeTitle( NS_CATEGORY, $t ); |
| 855 | + if ( !is_null( $catTitle ) ) { |
| 856 | + $articleText .= "\n[[" . $catTitle->getPrefixedText() . "|" . wfEscapeWikiText( $title->getSubpageText() ) . "]]\n"; |
| 857 | + } |
855 | 858 | } |
856 | 859 | |
857 | 860 | $req = new FauxRequest(array( |