summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-29 22:47:27 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-29 22:47:27 +0000
commit4fc1bffcde95ab4e2d91402771e87cd39b5d1ccb (patch)
tree30b7eda9bf34bc24dcf7740c107a9f7d71875afd /bin
parentd61f395465ed22effccd154782fde7f78f903dbf (diff)
downloadampache-4fc1bffcde95ab4e2d91402771e87cd39b5d1ccb.tar.gz
ampache-4fc1bffcde95ab4e2d91402771e87cd39b5d1ccb.tar.bz2
ampache-4fc1bffcde95ab4e2d91402771e87cd39b5d1ccb.zip
prep commit for the 3.4-alpha1 release
Diffstat (limited to 'bin')
-rw-r--r--bin/migrate_config.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/migrate_config.inc b/bin/migrate_config.inc
index 713a1656..4559f9c4 100644
--- a/bin/migrate_config.inc
+++ b/bin/migrate_config.inc
@@ -39,7 +39,9 @@ $translate = array('local_host'=>'database_hostname',
'sess_cookielife'=>'session_cookielife',
'sess_cookiesecure'=>'session_cookiesecure');
-$old_config = file_get_contents('../config/ampache.cfg.php');
+$path = dirname(__FILE__);
+$prefix = realpath($path . '/../');
+$old_config = file_get_contents($prefix . '/config/ampache.cfg.php');
$data = explode("\n",$old_config);
@@ -75,7 +77,7 @@ foreach ($data as $line) {
echo "Parse complete, writing\n";
-$handle = fopen('../config/ampache.cfg.php','w');
+$handle = fopen($prefix . '/config/ampache.cfg.php','w');
$worked = fwrite($handle,$new_config);