diff options
author | Tim Starling <tstarling@users.mediawiki.org> | 2004-03-06 01:49:16 +0000 |
---|---|---|
committer | Tim Starling <tstarling@users.mediawiki.org> | 2004-03-06 01:49:16 +0000 |
commit | 840dee3ad43a33d5b97b2e1dee64d5c04e255227 (patch) | |
tree | a9eb26ec0eb8eb232e99efef65873222a15c7bfa /includes/SpecialWatchlist.php | |
parent | 5da57c18f9df3e9b9746d9698970e1fa1deef1dc (diff) | |
download | mediawikicore-840dee3ad43a33d5b97b2e1dee64d5c04e255227.tar.gz mediawikicore-840dee3ad43a33d5b97b2e1dee64d5c04e255227.zip |
* Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/2621
Diffstat (limited to 'includes/SpecialWatchlist.php')
-rw-r--r-- | includes/SpecialWatchlist.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/SpecialWatchlist.php b/includes/SpecialWatchlist.php index 77fa45517d06..a763e8b477f5 100644 --- a/includes/SpecialWatchlist.php +++ b/includes/SpecialWatchlist.php @@ -14,6 +14,8 @@ function wfSpecialWatchlist() $wgOut->setSubtitle( $sub ); $wgOut->setRobotpolicy( "noindex,nofollow" ); + $specialTitle = Title::makeTitle( NS_SPECIAL, "Watchlist" ); + $uid = $wgUser->getID(); if( $uid == 0 ) { $wgOut->addHTML( wfMsg( "nowatchlist" ) ); @@ -91,7 +93,7 @@ function wfSpecialWatchlist() "<p>" . wfMsg( "watcheditlist" ) . "</p>\n" ); $wgOut->addHTML( "<form action='" . - wfLocalUrl( $wgLang->specialPage( "Watchlist" ), "action=submit" ) . + $specialTitle->getURL( "action=submit", true ) . "' method='post'>\n" . "<ul>\n" ); $sql = "SELECT wl_namespace,wl_title FROM watchlist WHERE wl_user=$uid"; @@ -130,8 +132,9 @@ function wfSpecialWatchlist() $z = "(wl_namespace=cur_namespace OR wl_namespace+1=cur_namespace)"; } + $wgOut->addHTML( "<i>" . wfMsg( "watchdetails", $nitems, $npages, $y, - wfLocalUrl( $wgLang->specialPage("Watchlist"),"magic=yes" ) ) . "</i><br>\n" ); + $specialTitle->getURL( "magic=yes", true ) ) . "</i><br>\n" ); $sql = "SELECT |