|
From: <red...@us...> - 2013-08-22 21:42:34
|
Revision: 11964
http://sourceforge.net/p/xoops/svn/11964
Author: redheadedrod
Date: 2013-08-22 21:42:30 +0000 (Thu, 22 Aug 2013)
Log Message:
-----------
Updated protector/include/postcheck_functions.php to support "legacy" database properly.
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0_doctrine/htdocs/modules/protector/include/postcheck_functions.php
Modified: XoopsCore/branches/2.6.x/2.6.0_doctrine/htdocs/modules/protector/include/postcheck_functions.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0_doctrine/htdocs/modules/protector/include/postcheck_functions.php 2013-08-22 21:21:38 UTC (rev 11963)
+++ XoopsCore/branches/2.6.x/2.6.0_doctrine/htdocs/modules/protector/include/postcheck_functions.php 2013-08-22 21:42:30 UTC (rev 11964)
@@ -26,10 +26,10 @@
*/
function protector_postcheck()
{
+
+ $xoops = Xoops::getInstance();
+ $xoops->db();
global $xoopsDB;
- $xoops = Xoops::getInstance();
- // $xoopsDB = $xoops->db();
-
// patch for 2.2.x from xoops.org (I know this is not so beautiful...)
if (substr(@XOOPS_VERSION, 6, 3) > 2.0 && stristr(@$_SERVER['REQUEST_URI'], 'modules/system/admin.php?fct=preferences')) {
$module_handler = $xoops->getHandlerModule();
|