Misc follow-ups to I2fc3966e (a161c5e)
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 11 Jan 2013 15:22:25 +0000 (16:22 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 18 Feb 2013 12:31:55 +0000 (13:31 +0100)
commit388b14a15de6c531d876796dde02605f046fcf53
tree1911ea676dbf48c3b17abafcaa1fa0095b4e42e7
parentfba656f9861bab41f0d94735bbc5cde672575fd8
Misc follow-ups to I2fc3966e (a161c5e)

- Also add LinkCache::addLinkObj() calls to isRedirect(), getLength() and getContentModel()
- Changed error messages when LinkCache returns null, since this really should not happen anymore
- Removed incorrect comments
- Only use the value of the member variable if GAID_FOR_UPDATE is not passed
  (for consistency between the three methods)
- Mark tests that need database access as such due to the call to Title::getContentModel()
  (generally called through Parser::getFunctionLang())

Change-Id: I84e0c47cdf7412f2b7fa5f296d066b64b7bbfd42
includes/Title.php
tests/phpunit/includes/ExtraParserTest.php
tests/phpunit/includes/parser/MagicVariableTest.php
tests/phpunit/includes/parser/TagHooksTest.php