RomanL 8 лет назад
Родитель
Сommit
9682b4bd89

+ 1 - 1
inc/classes/BxDolAccountQuery.php

@@ -32,7 +32,7 @@ class BxDolAccountQuery extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    public static function getInstance()
+    public static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolAccountQuery();

+ 1 - 1
inc/classes/BxDolAclQuery.php

@@ -33,7 +33,7 @@ class BxDolAclQuery extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    static function getInstance()
+    static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolAclQuery();

+ 2 - 1
inc/classes/BxDolCmtsQuery.php

@@ -404,7 +404,8 @@ class BxDolCmtsQuery extends BxDolDb
         $isDelOccured = 0;
         $sQuery = $this->prepare("SELECT `cmt_id`, `cmt_parent_id` FROM {$this->_sTable} WHERE `cmt_author_id` = ? AND `cmt_replies` = 0", $iAuthorId);
         $a = $this->getAll ($sQuery);
-        for ( reset($a) ; list (, $r) = each ($a) ; ) {
+		reset($a) ;
+		foreach ($a as $r) {
             $sQuery = $this->prepare("DELETE FROM {$this->_sTable} WHERE `cmt_id` = ?", $r['cmt_id']);
             $this->query ($sQuery);
 

+ 1 - 1
inc/classes/BxDolCronQuery.php

@@ -33,7 +33,7 @@ class BxDolCronQuery extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    static function getInstance()
+    static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolCronQuery();

+ 1 - 1
inc/classes/BxDolEmailTemplatesQuery.php

@@ -13,7 +13,7 @@
  */
 class BxDolEmailTemplatesQuery extends BxDolDb implements iBxDolSingleton
 {
-    public static function getInstance()
+    public static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if (!isset($GLOBALS['bxDolClasses'][__CLASS__])) {
             $o = new BxDolEmailTemplatesQuery();

+ 1 - 1
inc/classes/BxDolLanguagesQuery.php

@@ -29,7 +29,7 @@ class BxDolLanguagesQuery extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    static function getInstance()
+    static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolLanguagesQuery();

+ 1 - 1
inc/classes/BxDolModuleQuery.php

@@ -28,7 +28,7 @@ class BxDolModuleQuery extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    public static function getInstance()
+    public static function getInstance($aDbConf = false, &$sError = NULL)
     {
         $sClass = __CLASS__;
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))

+ 1 - 1
inc/classes/BxDolPermalinks.php

@@ -95,7 +95,7 @@ class BxDolPermalinks extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    public static function getInstance()
+    public static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolPermalinks();

+ 1 - 1
inc/classes/BxDolProfileQuery.php

@@ -32,7 +32,7 @@ class BxDolProfileQuery extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    public static function getInstance()
+    public static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolProfileQuery();

+ 1 - 1
inc/classes/BxDolPush.php

@@ -35,7 +35,7 @@ class BxDolPush extends BxDolDb implements iBxDolSingleton
     /**
      * Get singleton instance of the class
      */
-    public static function getInstance()
+    public static function getInstance($aDbConf = false, &$sError = NULL)
     {
         if(!isset($GLOBALS['bxDolClasses'][__CLASS__]))
             $GLOBALS['bxDolClasses'][__CLASS__] = new BxDolPush();

+ 1 - 1
modules/boonex/quoteofday/classes/BxQuoteOfDayModule.php

@@ -224,7 +224,7 @@ class BxQuoteOfDayModule extends BxDolModule
         $aTmp = $oXmlParser->getTags($sXmlContent, 'description');
         if (is_array($aTmp)) {
             $iC = 0;
-            while (list(, $aValue) = each($aTmp)) {
+            foreach ($aTmp as $aValue) {
                 if ($iC == $iRssMaxItems) break;
                 if (isset($aValue['value']) && $aValue['level'] == 4 && trim(strip_tags($aValue['value'])) != "") {
                     array_push($aTmpRv, $aValue['value']);

+ 1 - 1
studio/template/scripts/BxBaseStudioFunctions.php

@@ -18,7 +18,7 @@ class BxBaseStudioFunctions extends BxBaseFunctions implements iBxDolSingleton
         parent::__construct($oTemplate ? $oTemplate : BxDolStudioTemplate::getInstance());
     }
 
-    public static function getInstance()
+    public static function getInstance($oTemplate = null)
     {
         if (!isset($GLOBALS['bxDolClasses']['BxBaseStudioFunctions']))
             $GLOBALS['bxDolClasses']['BxBaseStudioFunctions'] = new BxTemplStudioFunctions();