Skip to content

Commit 74030b9

Browse files
author
pedro_morgan
committed
Janitor
1 parent c87c0a0 commit 74030b9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

install/install.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
| | ___| | | | | |___ | |_| | | | \ | | | | | | |_| |
4444
|_| /_____/ |_| \_____| \_____/ |_| \_| |_| |_| \_____/ ';
4545

46-
echo "# Setup routine started...\n";
46+
echo "\n# Setup routine started...\n";
4747

4848
//** Include the library with the basic installer functions
4949
require_once('lib/install.lib.php');
@@ -58,6 +58,7 @@
5858
include_once('dist/lib/'.$conf['distname'].'.lib.php');
5959
include_once('dist/conf/'.$conf['distname'].'.conf.php');
6060

61+
//TODO: this is not there ????
6162
$conf['dist'] = $dist;
6263

6364
//** Lets go !

install/lib/install.lib.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@
5757
$FILE = realpath('../install.php');
5858

5959
function get_distname() {
60+
global $conf; // TODO wtf ?
6061
$distname = $conf['distname'];
6162
return $distname;
6263
}
6364

6465
function sread() {
65-
$fp=fopen('/dev/stdin', 'r');
66-
$input=fgets($fp, 255);
67-
fclose($fp);
66+
$f = fopen('/dev/stdin', 'r');
67+
$input = fgets($f, 255);
68+
fclose($f);
6869
return rtrim($input);
6970
}
7071

0 commit comments

Comments
 (0)