Wikia code/includes/AjaxDispatcher.php

From mediawiki.org
--- D:\Programming\SVN\mediawiki\branches\REL1_16\phase3\includes\AjaxDispatcher.php	2011-07-18 22:31:28.074218800 +0100
+++ D:\Programming\SVN\wikia\trunk\includes\AjaxDispatcher.php	2011-08-17 15:28:46.435546900 +0100
@@ -107,7 +107,11 @@
 							. $this->func_name . "(" . var_export( $this->args, true ) . "): "
 							. "no data returned\n" );
 
-					wfHttpError( 500, 'Internal Error',
+					/* Wikia changes start */
+					//let's avoid falling back to Iowa (500, 503) in this case,
+					//probably someone is asking for a non-existing dynamic method name
+					wfHttpError( 501, 'Not Implemented',
+					/* Wikia changes end */
 						"{$this->func_name} returned no data" );
 				}
 				else {