Replace the random boolean parameters on Title::getURL() with a set of
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 7 Mar 2004 07:26:56 +0000 (07:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 7 Mar 2004 07:26:56 +0000 (07:26 +0000)
commitb59ce2294385403bf4da644a0323aa7ba01b8a66
tree9f61bee0131e39986465a6cd8ad11101fcc0ae2e
parent3e97b1dd6f486878d2216e6ff72a8b554e6098d7
Replace the random boolean parameters on Title::getURL() with a set of
practical, clear methods:
  Title::getLocalURL() - "/wiki/index.php/Foobar" or "/wiki/index.php?title=Foobar&action=edit"
  Title::getFullUrl() - ditto with $wgServer on the front
  Title::getInternalUrl() - ditto with $wgInternalServer on the front (for some squid-related functions)
  Title::escapeLocalUrl() - local URL escaped for HTML output
  Title::escapeFullUrl() - full URL escaped for HTML output

All take an optional query parameter.

Title::getURL(), wfFullUrl() and wfFullUrlE() are now officially
deprecated and will result in instant death. wfLocalUrl() and wfLocalUrlE()
will be killed shortly; they are still used in the language files.
28 files changed:
includes/Article.php
includes/EditPage.php
includes/GlobalFunctions.php
includes/OutputPage.php
includes/PageHistory.php
includes/Parser.php
includes/QueryPage.php
includes/SearchEngine.php
includes/Skin.php
includes/SkinCologneBlue.php
includes/SkinSmarty.php
includes/SpecialAsksql.php
includes/SpecialBlockip.php
includes/SpecialEmailuser.php
includes/SpecialExport.php
includes/SpecialImagelist.php
includes/SpecialIpblocklist.php
includes/SpecialLockdb.php
includes/SpecialMakesysop.php
includes/SpecialMovepage.php
includes/SpecialPreferences.php
includes/SpecialUndelete.php
includes/SpecialUnlockdb.php
includes/SpecialUpload.php
includes/SpecialUserlogin.php
includes/SpecialWatchlist.php
includes/SquidUpdate.php
includes/Title.php