r89073 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89072‎ | r89073 | r89074 >
Date:21:25, 28 May 2011
Author:reedy
Status:deferred
Tags:
Comment:
Wondering if wfIniGetBool doesn't exist? lol
Modified paths:
  • /trunk/extensions/AmazonPlus/AmazonPlus.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AmazonPlus/AmazonPlus.php
@@ -25,17 +25,6 @@
2626 exit( 1 );
2727 }
2828
29 -if ( !function_exists( 'wfIniGetBool' ) ) {
30 - # perhaps GlobalFunctions wasn't loaded?
31 - require_once( "$IP/includes/GlobalFunctions.php" );
32 - if ( !function_exists( 'wfIniGetBool' ) ) {
33 - # unsupported MediaWiki version, exit early so we don't get fatals or whatnot
34 - echo '<html><head><title>Error</title></head><body>The AmazonPlus extension does not support your version of MediaWiki.
35 - Please either upgrade MediaWiki or uninstall the AmazonPlus extension.</body></html>';
36 - die( 1 );
37 - }
38 -}
39 -
4029 # make sure that everything that needs to be set/loaded is that way
4130 $err = '';
4231 if ( !wfIniGetBool( 'allow_url_fopen' ) && !extension_loaded( 'curl' ) ) {

Status & tagging log