[Svn-src-all:3896] [version-2_13-dev 22810] #2241 (プラグイン機構の自殺を阻止)

Seasoft admin @ mail.ec-cube.net
2013年 5月 11日 (土) 10:31:46 JST


Subversion committed to /home/svn/open 22810
http://svn.ec-cube.net/open_trac/changeset/22810
┌────────────────────────────┐
│更新者 :  Seasoft                                      │
│更新日時:  2013-05-11 10:31:46 +0900 (土, 11  5月 2013)│
└────────────────────────────┘

Log:
--------------------------------------------------------
#2241 (プラグイン機構の自殺を阻止)
  * r22808 を差し戻し。正しく動作させるには、改訂がコアに及ぶため。

Changed:                      [U:修正,A:追加,D:削除]
--------------------------------------------------------
U   branches/version-2_13-dev/data/class/helper/SC_Helper_Plugin.php

変更: branches/version-2_13-dev/data/class/helper/SC_Helper_Plugin.php
===================================================================
--- branches/version-2_13-dev/data/class/helper/SC_Helper_Plugin.php	2013-05-11 01:28:20 UTC (rev 22809)
+++ branches/version-2_13-dev/data/class/helper/SC_Helper_Plugin.php	2013-05-11 01:31:46 UTC (rev 22810)
@@ -92,6 +92,13 @@
     static function getSingletonInstance($plugin_activate_flg = true)
     {
         if (!isset($GLOBALS['_SC_Helper_Plugin_instance'])) {
+            // プラグインのローダーがDB接続を必要とするため、
+            // SC_Queryインスタンス生成後のみオブジェクトを生成する。
+            require_once CLASS_EX_REALDIR . 'SC_Query_Ex.php';
+            if (is_null(SC_Query_Ex::getPoolInstance())) {
+                return false;
+            }
+
             $GLOBALS['_SC_Helper_Plugin_instance'] = new SC_Helper_Plugin_Ex();
             $GLOBALS['_SC_Helper_Plugin_instance']->load($plugin_activate_flg);
         }




Svn-src-all メーリングリストの案内