From a44efae424f6cdca4e0d11d59631bb6f8558d069 Mon Sep 17 00:00:00 2001
From: pedro_morgan <pedro_morgan@ispconfig3>
Date: Sun, 19 Aug 2007 05:28:14 -0400
Subject: [PATCH] Removed debug alert()

---
 install/lib/install.lib.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/install/lib/install.lib.php b/install/lib/install.lib.php
index 326067f..bd0a242 100644
--- a/install/lib/install.lib.php
+++ b/install/lib/install.lib.php
@@ -57,14 +57,15 @@
 $FILE = realpath('../install.php');
 
 function get_distname() {
+	global $conf; // TODO wtf ?
 	$distname = $conf['distname'];
 	return $distname;
 }
 
 function sread() {
-    $fp=fopen('/dev/stdin', 'r');
-    $input=fgets($fp, 255);
-    fclose($fp);
+    $f = fopen('/dev/stdin', 'r');
+    $input = fgets($f, 255);
+    fclose($f);
     return rtrim($input);
 }
 

--
Gitblit v1.9.1