Allow additional CSS file for ops pages (defined in project.inc as ADMIN_STYLESHEET)

This commit is contained in:
Rytis Slatkevicius 2013-05-17 11:12:29 +03:00
parent 1b4c2c0dbf
commit 258c6d802b
1 changed files with 5 additions and 1 deletions

View File

@ -31,7 +31,11 @@ function admin_page_head($title) {
$stylesheet = URL_BASE.STYLESHEET;
echo "<html><head><title>$title</title>
<link rel=stylesheet type=\"text/css\" href=\"".URL_BASE."main.css\" media=\"all\" />
<link rel=stylesheet type=\"text/css\" href=\"".URL_BASE."main.css\" media=\"all\" />";
if (defined('ADMIN_STYLESHEET')) {
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"".URL_BASE.ADMIN_STYLESHEET."\" media=\"all\" />";
}
echo "
</head>
<body bgcolor=\"#ffffff\">
<h2>".PROJECT.": $title</h2>