Don't forget new lines on error.
This commit is contained in:
parent
c36d654a08
commit
7d39384581
@ -20,10 +20,10 @@ elseif(file_exists('Tinyboard') && is_dir('Tinyboard') && file_exists('Tinyboard
|
|||||||
elseif(file_exists('../inc/functions.php'))
|
elseif(file_exists('../inc/functions.php'))
|
||||||
$dir = '..';
|
$dir = '..';
|
||||||
else
|
else
|
||||||
die('Could not locate Tinyboard directory!');
|
die("Could not locate Tinyboard directory!\n");
|
||||||
|
|
||||||
if($dir && !chdir($dir))
|
if($dir && !chdir($dir))
|
||||||
die('Could not change directory to ' . $dir . '!');
|
die("Could not change directory to {$dir}\n");
|
||||||
|
|
||||||
if(!getenv('TINYBOARD_PATH')) {
|
if(!getenv('TINYBOARD_PATH')) {
|
||||||
// follow symlink
|
// follow symlink
|
||||||
|
Loading…
Reference in New Issue
Block a user