[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.42,1.43
blaine at iowaoutdoors.org
blaine at iowaoutdoors.org
Fri Sep 24 23:03:14 EDT 2004
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv30842/system
Modified Files:
lib-plugins.php
Log Message:
Added the capability for Plugins to have an update function which will use the existing upgrade PLG function that has not been used to-date. Added a new PLG function to return the current version of code. The plugin Editor now will show the current installed version and the version returned from the current plugin function plugin_chkVersion. Site Admin will now have a way to tell if they have new plugin code in place.
Plugin Editor now has an update option when viewing the plugin details. Option will only appear if the plugin returned a valid version and is > registered installed version.
Admin now clicks on plugin-name instead of the number.
Index: lib-plugins.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -d -r1.42 -r1.43
*** lib-plugins.php 24 Sep 2004 10:25:32 -0000 1.42
--- lib-plugins.php 25 Sep 2004 03:03:12 -0000 1.43
***************
*** 144,147 ****
--- 144,160 ----
return PLG_callFunctionForOnePlugin('plugin_upgrade_' . $type);
}
+ /**
+ * Calls the plugin function to return the current version of code.
+ * Used to indicate to admin if an update or upgrade is requied.
+ *
+ * @param string $type Plugin name
+ * @return boolean Returns true on success otherwise false
+ *
+ */
+ function PLG_chkVersion($type)
+ {
+ return PLG_callFunctionForOnePlugin('plugin_chkVersion_' . $type);
+ }
+
/**
More information about the geeklog-cvs
mailing list