[geeklog-cvs] geeklog: Don't rename plugin config.php during upgrades (from pr...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Wed Jan 7 03:53:15 EST 2009


details:   http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/e7d2d8d37fc1
changeset: 6648:e7d2d8d37fc1
user:      Dirk Haun <dirk at haun-online.de>
date:      Wed Dec 31 19:05:40 2008 +0100
description:
Don't rename plugin config.php during upgrades (from pre-1.5.0 versions) any more. It's not needed and will only cause inconveniences when having to run the upgrade again.

diffstat:

2 files changed, 60 deletions(-)
sql/updates/mssql_1.4.1_to_1.5.0.php |   30 ------------------------------
sql/updates/mysql_1.4.1_to_1.5.0.php |   30 ------------------------------

diffs (136 lines):

diff -r 878c3258ab58 -r e7d2d8d37fc1 sql/updates/mssql_1.4.1_to_1.5.0.php
--- a/sql/updates/mssql_1.4.1_to_1.5.0.php	Sun Dec 28 18:14:57 2008 +0100
+++ b/sql/updates/mssql_1.4.1_to_1.5.0.php	Wed Dec 31 19:05:40 2008 +0100
@@ -459,12 +459,6 @@
         }
     }
 
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
-    }
-
     return true;
 }
 
@@ -501,12 +495,6 @@
             echo "There was an error upgrading the Static Pages plugin, SQL: $sql<br>";
             return false;
         }
-    }
-
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
     }
 
     return true;
@@ -558,12 +546,6 @@
         }
     }
 
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
-    }
-
     return true;
 }
 
@@ -593,12 +575,6 @@
     if (DB_error()) {
         echo "There was an error upgrading the Spam-X plugin";
         return false;
-    }
-
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
     }
 
     return true;
@@ -698,12 +674,6 @@
         }
     }
 
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
-    }
-
     return true;
 }
 
diff -r 878c3258ab58 -r e7d2d8d37fc1 sql/updates/mysql_1.4.1_to_1.5.0.php
--- a/sql/updates/mysql_1.4.1_to_1.5.0.php	Sun Dec 28 18:14:57 2008 +0100
+++ b/sql/updates/mysql_1.4.1_to_1.5.0.php	Wed Dec 31 19:05:40 2008 +0100
@@ -422,12 +422,6 @@
         }
     }
 
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
-    }
-
     return true;
 }
 
@@ -464,12 +458,6 @@
             echo "There was an error upgrading the Static Pages plugin, SQL: $sql<br>";
             return false;
         }
-    }
-
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
     }
 
     return true;
@@ -521,12 +509,6 @@
         }
     }
 
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
-    }
-
     return true;
 }
 
@@ -556,12 +538,6 @@
     if (DB_error()) {
         echo "There was an error upgrading the Spam-X plugin";
         return false;
-    }
-
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
     }
 
     return true;
@@ -657,12 +633,6 @@
         }
     }
 
-    if (file_exists($plugin_path . 'config.php')) {
-        // Rename the existing config.php as it's not needed any more
-        $ren = @rename($plugin_path . 'config.php',
-                       $plugin_path . 'config-pre1.5.0.php');
-    }
-
     return true;
 }
 



More information about the geeklog-cvs mailing list