http://www.mediawiki.org/wiki/Special:Code/MediaWiki/83380
Revision: 83380 Author: tbleher Date: 2011-03-06 11:29:17 +0000 (Sun, 06 Mar 2011) Log Message: ----------- Add IPv6 localhost address; more debugging information in case of errors The debug information is needed because users do not necessarily see the information (browsers will normally just display a broken image icon in case of errors, but not the error information itself). Modified Paths: -------------- trunk/extensions/WebStore/WebStore.php trunk/extensions/WebStore/WebStoreCommon.php Modified: trunk/extensions/WebStore/WebStore.php =================================================================== --- trunk/extensions/WebStore/WebStore.php 2011-03-06 11:29:11 UTC (rev 83379) +++ trunk/extensions/WebStore/WebStore.php 2011-03-06 11:29:17 UTC (rev 83380) @@ -5,12 +5,12 @@ * Set this in LocalSettings.php to an array of IP ranges allowed to access * the store. Empty by default for maximum security. */ - 'accessRanges' => array( '127.0.0.1' ), + 'accessRanges' => array( '127.0.0.1', '::1' ), /** * Access ranges for inplace-scaler.php */ - 'scalerAccessRanges' => array( '127.0.0.1' ), + 'scalerAccessRanges' => array( '127.0.0.1', '::1' ), /** * Main public directory. If false, uses $wgUploadDirectory Modified: trunk/extensions/WebStore/WebStoreCommon.php =================================================================== --- trunk/extensions/WebStore/WebStoreCommon.php 2011-03-06 11:29:11 UTC (rev 83379) +++ trunk/extensions/WebStore/WebStoreCommon.php 2011-03-06 11:29:17 UTC (rev 83380) @@ -86,6 +86,7 @@ global $wgLogo; $msgText = htmlspecialchars( wfMsgReal( $msgName, $msgParams ) ); $encMsgName = htmlspecialchars( $msgName ); + wfDebug( "WebStore failed with '$encMsgName: $msgText; additional info: $extra'\n" ); $info = self::$httpErrors[$code]; $logo = htmlspecialchars( $wgLogo ); header( "HTTP/1.1 $code $info" ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs