[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.29,1.30

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sun Jul 18 06:14:44 EDT 2004


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv3922/system

Modified Files:
	lib-plugins.php 
Log Message:
Fixes for PHP5 compatibility


Index: lib-plugins.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** lib-plugins.php	11 Jul 2004 18:18:05 -0000	1.29
--- lib-plugins.php	18 Jul 2004 10:14:41 -0000	1.30
***************
*** 405,411 ****
      $plgresults = array ();
  
-     $plugin = new Plugin();
      $counter = 0;
      foreach ($_PLUGINS as $pi_name) {
          $function = 'plugin_getuseroption_' . $pi_name;
          if (function_exists($function)) {
--- 405,411 ----
      $plgresults = array ();
  
      $counter = 0;
      foreach ($_PLUGINS as $pi_name) {
+         $plugin = new Plugin();
          $function = 'plugin_getuseroption_' . $pi_name;
          if (function_exists($function)) {
***************
*** 416,420 ****
                  $plgresults[$counter] = $plugin;
              }
-             $plugin->reset();
          }
      }
--- 416,419 ----
***************
*** 436,442 ****
      global $_TABLES, $_PLUGINS;
  
-     $plugin = new Plugin();
      $counter = 0;
      foreach ($_PLUGINS as $pi_name) {
          $function = 'plugin_getadminoption_' . $pi_name;
          if (function_exists($function)) {
--- 435,441 ----
      global $_TABLES, $_PLUGINS;
  
      $counter = 0;
      foreach ($_PLUGINS as $pi_name) {
+         $plugin = new Plugin();
          $function = 'plugin_getadminoption_' . $pi_name;
          if (function_exists($function)) {
***************
*** 446,450 ****
                  $plgresults[$counter] = $plugin;
              }
-             $plugin->reset();
          }
      }
--- 445,448 ----
***************
*** 511,520 ****
  
      require_once($_CONF['path_system'] . 'classes/plugin.class.php');
-     $cur_plugin = new Plugin();
      $plugins = array();
      foreach ($_PLUGINS as $pi_name) {
          $function = 'plugin_cclabel_' . $pi_name;
          if (function_exists($function)) {
-             $cur_plugin->reset();
              $cclabel = $function ();
              if ($cclabel !== false) {
--- 509,517 ----
  
      require_once($_CONF['path_system'] . 'classes/plugin.class.php');
      $plugins = array();
      foreach ($_PLUGINS as $pi_name) {
+         $cur_plugin = new Plugin();
          $function = 'plugin_cclabel_' . $pi_name;
          if (function_exists($function)) {
              $cclabel = $function ();
              if ($cclabel !== false) {




More information about the geeklog-cvs mailing list