diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2004-08-22 23:55:36 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2004-08-22 23:55:36 +0000 |
commit | 82571fa72d85160fc679a545dd6f5d52df9e47c6 (patch) | |
tree | 99894f05c575964916fedb6b84544eb82a8aaef1 /index.php | |
parent | 5380c5ca6a7f1f7a66c7bf60640e395f421d2b98 (diff) | |
download | mediawikicore-82571fa72d85160fc679a545dd6f5d52df9e47c6.tar.gz mediawikicore-82571fa72d85160fc679a545dd6f5d52df9e47c6.zip |
Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
and use it in a few places where user names, images, or messages are being
used to create titles.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/4912
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php index ad36e52758d6..9f8fa52ca1b6 100644 --- a/index.php +++ b/index.php @@ -96,7 +96,7 @@ if( $search = $wgRequest->getText( 'search' ) ) { SpecialPage::executePath( $wgTitle ); } else { if ( Namespace::getMedia() == $wgTitle->getNamespace() ) { - $wgTitle = Title::makeTitle( Namespace::getImage(), $wgTitle->getDBkey() ); + $wgTitle = Title::makeTitle( NS_IMAGE, $wgTitle->getDBkey() ); } switch( $wgTitle->getNamespace() ) { |