Move fatal error method to functions lib to use
it in other scripts than install.php as well.
return $path . ((substr($path, -1) == '/') ? '' : '/');
}
-function jirafeau_fatal_error($errorText)
-{
- echo '<div class="error"><h2>Error</h2><p>' . $errorText . '</p></div>';
- require(JIRAFEAU_ROOT . 'lib/template/footer.php');
- exit;
-}
-
/**
* Check installation
**/
return $content;
}
+function jirafeau_fatal_error($errorText, $cfg = array())
+{
+ echo '<div class="error"><h2>Error</h2><p>' . $errorText . '</p></div>';
+ require(JIRAFEAU_ROOT . 'lib/template/footer.php');
+ exit;
+}
+
function jirafeau_clean_rm_link($link)
{
$p = s2p("$link");
?>
<!-- Installation dependend links -->
<?php
- if (true == $cfg['installation_done']) {
+ if (false === empty($cfg['installation_done'])) {
echo ' <span>|</span> ';
echo '<a href="' . JIRAFEAU_ABSPREFIX . 'tos.php">' . t('Terms of Service') . '</a>';
}