[geeklog-cvs] geeklog-1.3/plugins/staticpages functions.inc,1.40,1.41
blaine at iowaoutdoors.org
blaine at iowaoutdoors.org
Fri Sep 24 23:03:12 EDT 2004
Update of /var/cvs/geeklog-1.3/plugins/staticpages
In directory www:/tmp/cvs-serv30842/plugins/staticpages
Modified Files:
functions.inc
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: functions.inc
===================================================================
RCS file: /var/cvs/geeklog-1.3/plugins/staticpages/functions.inc,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -d -r1.40 -r1.41
*** functions.inc 11 Aug 2004 09:24:35 -0000 1.40
--- functions.inc 25 Sep 2004 03:03:10 -0000 1.41
***************
*** 549,552 ****
--- 549,563 ----
}
+
+ /**
+ * Return the current version of code.
+ * Used in the Plugin Editor to show the registered version and code version
+ */
+ function plugin_chkVersion_staticpages() {
+ global $_SP_CONF;
+ return $_SP_CONF['version'];
+ }
+
+
/**
* Removes the datastructures for this plugin from the Geeklog database
More information about the geeklog-cvs
mailing list