[Phpfreechat-svn] SF.net SVN: phpfreechat: [669] trunk/src/phpfreechat.class.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-08-02 14:14:55
|
Revision: 669 Author: kerphi Date: 2006-08-02 07:14:46 -0700 (Wed, 02 Aug 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=669&view=rev Log Message: ----------- Bug fix: When /rehash command was run, sometime a js alert showing php errors poped up. Modified Paths: -------------- trunk/src/phpfreechat.class.php Modified: trunk/src/phpfreechat.class.php =================================================================== --- trunk/src/phpfreechat.class.php 2006-08-02 09:54:10 UTC (rev 668) +++ trunk/src/phpfreechat.class.php 2006-08-02 14:14:46 UTC (rev 669) @@ -60,14 +60,18 @@ return phpFreeChat::HandleRequest($request); } // then init xajax engine - if (!class_exists("xajax")) require_once $c->xajaxpath."/xajax.inc.php"; - $this->xajax = new xajax($c->server_script_url.(isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "" ? "?".$_SERVER["QUERY_STRING"] : ""), $c->prefix); - if ($c->debugxajax) $this->xajax->debugOn(); - $this->xajax->waitCursorOff(); // do not show a wait cursor during chat updates - $this->xajax->cleanBufferOff(); - $this->xajax->errorHandlerOn(); // used to have verbose error logs - $this->xajax->registerFunction("handleRequest"); - $this->xajax->processRequests(); + if (!class_exists("xajax")) + if (file_exists($c->xajaxpath."/xajax.inc.php")) + { + require_once $c->xajaxpath."/xajax.inc.php"; + $this->xajax = new xajax($c->server_script_url.(isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "" ? "?".$_SERVER["QUERY_STRING"] : ""), $c->prefix); + if ($c->debugxajax) $this->xajax->debugOn(); + $this->xajax->waitCursorOff(); // do not show a wait cursor during chat updates + $this->xajax->cleanBufferOff(); + $this->xajax->errorHandlerOn(); // used to have verbose error logs + $this->xajax->registerFunction("handleRequest"); + $this->xajax->processRequests(); + } } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |