[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
Mon Jan 5 05:06:54 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/f6cceb986985
changeset: 6619:f6cceb986985
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 bfbef11defcf -r f6cceb986985 sql/updates/mssql_1.4.1_to_1.5.0.php
--- a/sql/updates/mssql_1.4.1_to_1.5.0.php Wed Dec 31 17:34:40 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 bfbef11defcf -r f6cceb986985 sql/updates/mysql_1.4.1_to_1.5.0.php
--- a/sql/updates/mysql_1.4.1_to_1.5.0.php Wed Dec 31 17:34:40 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