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.
* 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
execution starts and ends in wiki.phtml, giving the code a somewhat
more predictable flow.
OutputPage.php:
* Added disable() method to Output class.
* Replaced exit() call in checkLastModified() with "return true" (thereby
altering its contract quite severly).
* reportTime() now only returns elapsed time, code with side effects
moved to logProfilingData() in GlobalFunctions.php.
GlobalFunctions.php:
* Added function logProfilingData() which does most of what
OutputPage->reportTime() used to do.
Article.php:
* Replaced exit() in checkLastModified() with "return true" (thereby altering
its contract quite severly).
* replaced implicit exit in calls to checkLastModified() and tryFileCache()
with returns.
LogPage.php:
* replaced implicit exit() with return in call to checkLastModified()
SpecialRecentchanges.php:
* replaced implicit exit() with return in call to checkLastModified()
wiki.phtml:
* Single call to logProfilingData() at the end of the request.