summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
041d7ce)
Move fatal error method to functions lib to use
it in other scripts than install.php as well.
return $path . ((substr($path, -1) == '/') ? '' : '/');
}
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
**/
/**
* Check installation
**/
+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");
function jirafeau_clean_rm_link($link)
{
$p = s2p("$link");
?>
<!-- Installation dependend links -->
<?php
?>
<!-- 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>';
}
echo ' <span>|</span> ';
echo '<a href="' . JIRAFEAU_ABSPREFIX . 'tos.php">' . t('Terms of Service') . '</a>';
}