From 4fc1bffcde95ab4e2d91402771e87cd39b5d1ccb Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sun, 29 Jul 2007 22:47:27 +0000 Subject: prep commit for the 3.4-alpha1 release --- bin/migrate_config.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/migrate_config.inc') 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); -- cgit