Go to file
Jdlrobson 4b53afc983 Don't hit the DB unnecessarily
If $wgRelatedArticlesShowInFooter is false, then we'll still test
whether or not the page is a disambiguation page with the Disambiguator
extension. Unfortunately, DisambiguatorHooks::isDisambiguationPage hits
the DB.

Order the tests in RelatedArticles\FooterHooks::onBeforePageDisplay from
least expensive to most expensive so that the DB is queried only when it
must be.

This version of the patch takes into account namespace.

Bug: T127068
Bug: T144409
Change-Id: Ie6ddaa4e9bd8326c8b84dc400b78e9a4f4d0d78d
2016-08-31 20:13:05 +01:00
i18n Localisation updates from https://translatewiki.net. 2016-08-27 23:27:15 +02:00
images/BetaFeatures Make RelatedArticles available as a beta feature 2015-11-25 20:43:51 +05:00
includes Don't hit the DB unnecessarily 2016-08-31 20:13:05 +01:00
resources Cache morelike requrests 2016-08-29 15:54:53 -04:00
tests Remove uncessary ParserClearState hook 2016-07-28 15:55:02 -07:00
.gitignore build: Updating mediawiki/mediawiki-codesniffer to 0.7.1 2016-05-09 16:59:15 -07:00
.gitreview Make the master branch default 2016-01-26 13:41:08 -05:00
.jscsrc build: Simplify Grunt configuration 2015-11-10 18:07:15 +00:00
.jshintignore Add extension boilerplate 2015-10-07 15:48:26 +01:00
.jshintrc Update packages 2015-12-07 21:00:56 +00:00
.rubocop.yml Rake entry point and rubocop fix up 2016-01-06 16:57:22 +01:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 0.7.2 2016-05-27 18:23:53 -07:00
extension.json Use SidebarBeforeOutput hook instead of echo'ing HTML 2016-07-29 20:34:40 -07:00
Gemfile Upgrade mediawiki_selenium in Gemfile 2016-08-04 15:49:40 -07:00
Gemfile.lock Upgrade mediawiki_selenium in Gemfile 2016-08-04 15:49:40 -07:00
Gruntfile.js build: Simplify Grunt configuration 2015-11-10 18:07:15 +00:00
HISTORY Release 2.1.0 2015-12-14 09:40:11 -08:00
package.json build: Updating development dependencies 2015-12-29 21:06:31 +00:00
phpcs.xml Add extension boilerplate 2015-10-07 15:48:26 +01:00
Rakefile Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 19:35:20 +02:00
README Add simple README 2015-11-23 23:10:02 +05:00
RelatedArticles.i18n.magic.php build: Updating mediawiki/mediawiki-codesniffer to 0.7.1 2016-05-09 16:59:15 -07:00
RelatedArticles.php Use extension registration 2015-10-07 15:54:07 +01:00

For information on how to install and use this extension, please see:
    <https://www.mediawiki.org/wiki/Extension:RelatedArticles>