Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion include/lib_general.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function get_svn_dir($project)
return $GLOBALS['PROJECTS'][$project][1] . '/';
}

function site_header()
function site_header(array $config = [])
{
$TITLE = 'Documentation Tools';
$SUBDOMAIN = 'doc';
Expand All @@ -38,6 +38,7 @@ function site_header()
array('href' => '/revcheck.php', 'text' => 'Translation Status'),
array('href' => '/phd.php', 'text' => 'PhD Homepage'),
);
$CONFIG = $config;

require __DIR__ . '/../shared/templates/header.inc';
echo <<<END_OF_MULTILINE
Expand Down
2 changes: 1 addition & 1 deletion www/revcheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
die;
}

site_header();
site_header(['cache_control' => 3600]);
switch($tool) {
case 'translators':
$translators = get_translators($dbhandle, $lang);
Expand Down