aboutsummaryrefslogtreecommitdiffstats
path: root/install/upgrade_1.3.1.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-11-12 12:41:27 +0000
committerpatdenice <patdenice@piwigo.org>2008-11-12 12:41:27 +0000
commitb5b089670a796b2a6a510330bc081e42ddd937c2 (patch)
tree5561d9df86a9caa6e5ab42fa914d94e494872bdc /install/upgrade_1.3.1.php
parentdf2f3a4f4d3bc0402d3cb7be38506b131f18e12c (diff)
merge -c2863 from trunk to branch 2.0
- Remove advises of file removal at the end of install/upgrade. - Automatic change mysql.inc.php if file is writable, else purpose manual change to user. git-svn-id: http://piwigo.org/svn/branches/2.0@2864 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'install/upgrade_1.3.1.php')
-rw-r--r--install/upgrade_1.3.1.php11
1 files changed, 2 insertions, 9 deletions
diff --git a/install/upgrade_1.3.1.php b/install/upgrade_1.3.1.php
index 436f25953..fa7708f6a 100644
--- a/install/upgrade_1.3.1.php
+++ b/install/upgrade_1.3.1.php
@@ -595,15 +595,8 @@ if (!is_writable($config_file))
die('FILE NOT WRITABLE '.$config_file);
}
-// Insert define('PHPWG_INSTALLED', true); in mysql.inc.php
-$config_file_contents =
- substr($config_file_contents, 0, $php_end_tag).'
-define(\'PHPWG_INSTALLED\', true);
-'.substr($config_file_contents, $php_end_tag);
-
-$fp = @fopen( $config_file, 'w' );
-@fputs($fp, $config_file_contents, strlen($config_file_contents));
-@fclose($fp);
+// changes to write in mysql.inc.php
+array_push($mysql_changes, 'define(\'PHPWG_INSTALLED\', true);');
// Send infos
$page['infos'] = array_merge(