|
From: <var...@us...> - 2009-02-26 14:36:51
|
Revision: 6580
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6580&view=rev
Author: vargenau
Date: 2009-02-26 14:36:44 +0000 (Thu, 26 Feb 2009)
Log Message:
-----------
In Gforge, disable update_locale because Zend Debugger crash
Modified Paths:
--------------
trunk/lib/IniConfig.php
Modified: trunk/lib/IniConfig.php
===================================================================
--- trunk/lib/IniConfig.php 2009-02-26 14:32:29 UTC (rev 6579)
+++ trunk/lib/IniConfig.php 2009-02-26 14:36:44 UTC (rev 6580)
@@ -778,7 +778,14 @@
if (!defined('DEFAULT_LANGUAGE')) // not needed anymore
define('DEFAULT_LANGUAGE', ''); // detect from client
- update_locale(isset($LANG) ? $LANG : DEFAULT_LANGUAGE);
+ // Gforge hack
+ if (!defined('GFORGE') or !GFORGE) {
+ // Disable update_locale because Zend Debugger crash
+ if(! extension_loaded('Zend Debugger')) {
+ update_locale(isset($LANG) ? $LANG : DEFAULT_LANGUAGE);
+ }
+ }
+
if (empty($LANG)) {
if (!defined("DEFAULT_LANGUAGE") or !DEFAULT_LANGUAGE) {
// TODO: defer this to WikiRequest::initializeLang()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|