[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.27,1.27.2.1
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Sat Jul 17 08:19:59 EDT 2004
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv5443/system
Modified Files:
Tag: geeklog_1_3_9_1
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.27
retrieving revision 1.27.2.1
diff -C2 -d -r1.27 -r1.27.2.1
*** lib-plugins.php 14 Feb 2004 19:19:13 -0000 1.27
--- lib-plugins.php 17 Jul 2004 12:19:55 -0000 1.27.2.1
***************
*** 417,423 ****
$result = DB_query("SELECT pi_name FROM {$_TABLES['plugins']} WHERE pi_enabled = 1");
$nrows = DB_numRows($result);
- $plugin = new Plugin();
$counter = 0;
for ($i = 1; $i <= $nrows; $i++) {
$A = DB_fetchArray($result);
$function = 'plugin_getuseroption_' . $A['pi_name'];
--- 417,423 ----
$result = DB_query("SELECT pi_name FROM {$_TABLES['plugins']} WHERE pi_enabled = 1");
$nrows = DB_numRows($result);
$counter = 0;
for ($i = 1; $i <= $nrows; $i++) {
+ $plugin = new Plugin();
$A = DB_fetchArray($result);
$function = 'plugin_getuseroption_' . $A['pi_name'];
***************
*** 429,433 ****
$plgresults[$counter] = $plugin;
}
- $plugin->reset();
}
}
--- 429,432 ----
***************
*** 451,457 ****
$result = DB_query("SELECT pi_name FROM {$_TABLES['plugins']} WHERE pi_enabled = 1");
$nrows = DB_numRows($result);
- $plugin = new Plugin();
$counter = 0;
for ($i = 1; $i <= $nrows; $i++) {
$A = DB_fetchArray($result);
$function = 'plugin_getadminoption_' . $A['pi_name'];
--- 450,456 ----
$result = DB_query("SELECT pi_name FROM {$_TABLES['plugins']} WHERE pi_enabled = 1");
$nrows = DB_numRows($result);
$counter = 0;
for ($i = 1; $i <= $nrows; $i++) {
+ $plugin = new Plugin();
$A = DB_fetchArray($result);
$function = 'plugin_getadminoption_' . $A['pi_name'];
***************
*** 462,466 ****
$plgresults[$counter] = $plugin;
}
- $plugin->reset();
}
}
--- 461,464 ----
***************
*** 529,539 ****
$nrows = DB_numRows($result);
require_once($_CONF['path_system'] . 'classes/plugin.class.php');
- $cur_plugin = new Plugin();
$plugins = array();
for ($i = 1; $i <= $nrows; $i++) {
$A = DB_fetchArray($result);
$function = 'plugin_cclabel_' . $A['pi_name'];
if (function_exists($function)) {
- $cur_plugin->reset();
$cclabel = $function ();
if ($cclabel !== false) {
--- 527,536 ----
$nrows = DB_numRows($result);
require_once($_CONF['path_system'] . 'classes/plugin.class.php');
$plugins = array();
for ($i = 1; $i <= $nrows; $i++) {
+ $cur_plugin = new Plugin();
$A = DB_fetchArray($result);
$function = 'plugin_cclabel_' . $A['pi_name'];
if (function_exists($function)) {
$cclabel = $function ();
if ($cclabel !== false) {
More information about the geeklog-cvs
mailing list