Revert 61e152c.
authorJan Schneider <jan@horde.org>
Wed, 28 Apr 2010 13:28:11 +0000 (15:28 +0200)
committerJan Schneider <jan@horde.org>
Wed, 28 Apr 2010 13:28:11 +0000 (15:28 +0200)
Do NOT mess with the release scripts unless you extensively tested that
everything still works!

framework/Release/lib/Horde/Release.php

index 40540d2..4211141 100644 (file)
@@ -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");
         }
     }