Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7829
Modified Files:
serendipity_admin_upgrader.inc.php
Log Message:
new functions should be only called when the current version is lower than
the target version?
during my update to 0.6.6, the function for 0.6.5 (categoryTree) was called
again...
Index: serendipity_admin_upgrader.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_admin_upgrader.inc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- serendipity_admin_upgrader.inc.php 16 Jun 2004 18:28:58 -0000 1.12
+++ serendipity_admin_upgrader.inc.php 18 Jun 2004 15:32:22 -0000 1.13
@@ -47,7 +47,7 @@
/* Call functions */
foreach ($tasks as $version => $function) {
- if (version_compare(serendipity_version($serendipity['versionInstalled']), $version, '<=') ) {
+ if (version_compare(serendipity_version($serendipity['versionInstalled']), $version, '<') ) {
if (is_callable($function)) {
echo 'Calling ' . $function . '...<br />';
call_user_func($function);
|