Wikia code/includes/specials/SpecialWhatlinkshere.php
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on the information here being up-to-date. The information shown below refers to the now unmaintained 1.16 MediaWiki release. The current stable release number is 1.42.3. |
Merged two changes to core already. Not sure if the hook-call can be just copy-pasted directly (I think hooks might have changed slightly in core).
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\specials\SpecialWhatlinkshere.php 2011-07-18 22:31:17.704101600 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\specials\SpecialWhatlinkshere.php 2011-08-17 15:28:16.350585900 +0100
@@ -135,6 +136,9 @@
$options['LIMIT'] = $queryLimit;
$fields = array( 'page_id', 'page_namespace', 'page_title', 'page_is_redirect' );
+ // hook by Wikia, Bartek Lapinski 30.03.2009, for videos and stuff
+ wfRunHooks( 'SpecialWhatlinkshere::beforeImageQuery', array( &$hideimages, &$plConds, &$tlConds, &$ilConds ) );
+
if( $fetchlinks ) {
$options['ORDER BY'] = 'pl_from';
$plRes = $dbr->select( array( 'pagelinks', 'page' ), $fields,