Browse Source

Use footer macro

pull/5/merge
Kai Kretschmann 1 year ago
parent
commit
b0b251829c
1 changed files with 10 additions and 9 deletions
  1. 10
    9
      archived.php

+ 10
- 9
archived.php View File

@@ -4,15 +4,16 @@ require 'inc/pre.inc.php';
define('TITLE', _('Archived'));
require 'tpl/head.inc.php';
define('INC_FOOTER', 'tpl/foot.inc.php');
$l = null;
try {
$l = new Lggr($state, $config);
}
catch (LggrException $e) {
echo '<div class="container"><div class="alert alert-danger" role="alert">' .
$e->getMessage() . '</div></div>';
require 'tpl/foot.inc.php';
echo '<div class="container"><div class="alert alert-danger" role="alert">' . $e->getMessage() . '</div></div>';
require INC_FOOTER;
exit();
}
@@ -26,10 +27,9 @@ try {
$isSearch = false;
}
catch (LggrException $e) {
echo '<div class="container"><div class="alert alert-danger" role="alert">' .
$e->getMessage() . '</div></div>';
require 'tpl/foot.inc.php';
echo '<div class="container"><div class="alert alert-danger" role="alert">' . $e->getMessage() . '</div></div>';
require INC_FOOTER;
exit();
}
@@ -145,4 +145,5 @@ if (! $isSearch) {
<?php
$aPerf = $l->getPerf();
require 'tpl/foot.inc.php'?>
require INC_FOOTER;
?>

Loading…
Cancel
Save
Social stuff:
Mastodon