Wikia code/includes/specials/SpecialWhatlinkshere.php

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,