From 6b718a80d845b5df3b376ce410d439b81f333ece Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 28 Apr 2010 15:28:11 +0200 Subject: [PATCH] Revert 61e152c. Do NOT mess with the release scripts unless you extensively tested that everything still works! --- framework/Release/lib/Horde/Release.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/framework/Release/lib/Horde/Release.php b/framework/Release/lib/Horde/Release.php index 40540d252..4211141d6 100644 --- a/framework/Release/lib/Horde/Release.php +++ b/framework/Release/lib/Horde/Release.php @@ -470,6 +470,18 @@ class Horde_Release if ($result) { exit; } + + print "Setting include path\n"; + $filename = $directory . '/lib/core.php'; + $newfilename = $filename . '.new'; + $oldfp = fopen($filename, 'r'); + $newfp = fopen($newfilename, 'w'); + while ($line = fgets($oldfp)) { + fwrite($newfp, str_replace('// ini_set(\'include_path\'', 'ini_set(\'include_path\'', $line)); + } + fclose($oldfp); + fclose($newfp); + system("mv -f $newfilename $filename"); } } -- 2.11.0