]> git.p6c8.net - jirafeau.git/blobdiff - index.php
[TASK] re-arrange Docker overlays to speedup image creation
[jirafeau.git] / index.php
index 9f1b0c721f7f6d9bf58ec414a726d61c8bd67516..33bb83ea6d34fbfd0e3284bf1712796a605bfdd9 100644 (file)
--- a/index.php
+++ b/index.php
@@ -27,6 +27,7 @@ require(JIRAFEAU_ROOT . 'lib/lang.php');
 
 check_errors($cfg);
 if (has_error()) {
+    require(JIRAFEAU_ROOT . 'lib/template/header.php');
     show_errors();
     require(JIRAFEAU_ROOT . 'lib/template/footer.php');
     exit;
@@ -298,8 +299,11 @@ elseif (true === jirafeau_challenge_upload_ip($cfg, get_ip_address($cfg))) {
     document.getElementById('send').style.display = 'none';
     if (!check_html5_file_api ())
         document.getElementById('max_file_size').innerHTML = '<?php
-             echo t('NO_BROWSER_SUPPORT') . jirafeau_get_max_upload_size();
-             ?>';
+            $max_size = jirafeau_get_max_upload_size();
+            if ($max_size > 0) {
+                echo t('NO_BROWSER_SUPPORT') . $max_size;
+            }
+        ?>';
 
     addCopyListener('upload_link_button', 'upload_link');
     addCopyListener('preview_link_button', 'preview_link');

patrick-canterino.de