Commit graph

26 commits

Author SHA1 Message Date
Alexandre Emsenhuber
3783b0b51c Remove some methods from FakeTitle that do not exist anymore in Title.
There are :
- FakeTitle::moveOverExistingRedirect()
- FakeTitle::moveToNewTitle()

Change-Id: I09f689ef185357b9c9afbfe95bc06b6135ed115d
2012-05-21 10:18:58 +02:00
Alexandre Emsenhuber
15e9fcca01 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Iaebd4e253ff3b35b568e9b394231a5691445ac95
2012-05-14 19:59:58 +02:00
Alexandre Emsenhuber
48f2c584a5 Removed FakeTitle::userCanEditCssJsSubpage() for consistency since Title::userCanEditCssJsSubpage() doesn't exist anymore 2012-02-13 14:01:32 +00:00
Antoine Musso
d5d1585900 revert r111234 (deprecated methods removal)
Reasons invoked by Rob Lanphier are:
* ongoing code slush
* backwards compatilibility issues
2012-02-12 19:25:28 +00:00
Alexandre Emsenhuber
435c7eb616 Remove some methods marked for removal in 1.20 and update FakeTitle accordingly.
No more callers in core or extensions.
2012-02-11 14:36:36 +00:00
Brion Vibber
0bbf9a45b0 Revert r107769, r107771, r107825, r107840, r107927, r107934
Title objects are meant to be dumb value objects; we shouldn't add to their internal state like this, but should be working to remove the bits already in there like the article ID.
Preloading information like this can make sense, but probably belongs in WikiPage, not Title.
2012-01-03 21:44:41 +00:00
Alexandre Emsenhuber
4701a65c08 Update method signatures in FakeTitle to avoid E_STRICTs 2012-01-03 16:18:14 +00:00
Alexandre Emsenhuber
68bf1a77b4 * Store the value of the page.page_restrictions field in Title::loadFromRow() and defers loading restrictions until when it's really needed; this reuses the Title::$mOldRestrictions member which is not used anywhere yet
* Removed $oldFashionedRestrictions parameter from Title::loadRestrictions*(); the only extension using it is LiquidThreads and it's using Title::newFromRow() to create the Title object, so the field is already cached (and this even allows to cache that field when there's no row for that page in the page_restrictions table)
* Also reset $mTouched and $mIsNew members on resetArticleId() calls
* Updated FakeTitle a bit
2012-01-02 12:49:50 +00:00
Robin Pepermans
013410082a Removed Title::isValidCssJsSubpage(), deprecated since 1.17 (77309), and updated all remaining usage in extensions 2011-12-13 11:54:02 +00:00
Chad Horohoe
7914b2ee68 (bug 29475) Remove "trackback" feature entirely from core. This has been disabled-by-default since its inception and nobody uses it.
If someone really really wants this, they can write an extension.

Language files need rebuilding, but I took care of En and messages.inc.
2011-11-23 17:14:03 +00:00
Daniel Friesen
32b4dd8a77 Refactor core from Title::getLinkUrl to Title::getLinkURL to match Title's getLocalURL and getFullURL.
This shouldn't cause any back or forward compat issues since php treats method names as case-insensitive. So this change shouldn't break any old extensions, and extensions are free to start using getLinkURL and won't have any issue breaking with old versions of MediaWiki.
2011-11-10 03:27:55 +00:00
Sam Reed
c67933901b It's not just for < 5.1! 2011-05-26 20:38:05 +00:00
Alexandre Emsenhuber
2f3fbc403a * Fix E_STRICT errors about functions not having same signature
* Added missing functions that are in Title but not FakeTitle
2010-01-22 18:43:59 +00:00
Siebrand Mazeland
4d25a04481 Remove deprecated userCanCreate(), userCanEdit(), userCanMove(). Methods were deprecated in r19193 (2007-01-13) and are no longer used in current trunk or extensions. 2009-05-24 08:59:39 +00:00
Ilmari Karonen
7f71d9e38f followup to r44520: simplify various bits by removing checks now made redundant 2008-12-13 04:14:40 +00:00
Chad Horohoe
b514de314d Fix some strict standards on function declaration. Others might need this too, but these methods were mentioned in bug 16060. 2008-10-22 01:00:23 +00:00
Roan Kattouw
774baf349a Improve FakeTitle implementation:
* Make FakeTitle a subclass of Title so functions with a type hint like Parser::parse() accept FakeTitles too
* Remove two static functions from the FakeTitle class
2008-08-28 14:19:01 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Antoine Musso
4c03ff3e33 Remove obsoletes Title::getRelatedCache, Title:touchArray 2007-04-16 15:29:37 +00:00
Rotem Liss
1382e6efa5 * Use 1movedto2_redir instead of 1movedto2 in the pages history when moving over redirects.
* Removing Title::createRedirect: not used at all in trunk and in the extensions, originally created for the old template namespace script, which was deleted.
2007-01-22 16:53:28 +00:00
Antoine Musso
4d265b4ba3 We forgot userCanCreate() 2007-01-20 17:57:52 +00:00
Tim Starling
02547dac72 Removed most exit() calls from the MediaWiki core, by replacing them with either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date. 2006-06-07 06:40:24 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Tim Starling
2d8d8b4295 closing tag 2006-02-28 12:05:30 +00:00
Tim Starling
f755c6c682 Class to help with debugging inappropriate references to $wgTitle. 2006-02-28 05:19:50 +00:00