diff --git a/include/lib_general.inc.php b/include/lib_general.inc.php index af48826..603bec8 100644 --- a/include/lib_general.inc.php +++ b/include/lib_general.inc.php @@ -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'; @@ -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 << 3600]); switch($tool) { case 'translators': $translators = get_translators($dbhandle, $lang);