From: Aaron Schulz Date: Fri, 22 Jul 2011 10:32:19 +0000 (+0000) Subject: Avoid redefining TESTWIKI constant (Het wrappers already do this) X-Git-Tag: 1.31.0-rc.0~28688 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=1159d6cdf1dcdcb0b24417b8a64f9c641df8daab;p=lhc%2Fweb%2Fwiklou.git Avoid redefining TESTWIKI constant (Het wrappers already do this) --- diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 0889df9e46..196e0dd849 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -926,7 +926,9 @@ abstract class Maintenance { ini_set( 'include_path', ".:$IP:$IP/includes:$IP/languages:$IP/maintenance" ); if ( $lang == 'test' && $site == 'wikipedia' ) { - define( 'TESTWIKI', 1 ); + if ( !defined( 'TESTWIKI' ) ) { + define( 'TESTWIKI', 1 ); + } } } @@ -1254,4 +1256,3 @@ class FakeMaintenance extends Maintenance { return; } } -