]> git.joonet.de Git - adminer.git/commitdiff
Allow replacing JS functions in head method
authorJakub Vrana <jakub@vrana.cz>
Fri, 25 Mar 2011 15:03:36 +0000 (16:03 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 25 Mar 2011 15:03:36 +0000 (16:03 +0100)
adminer/include/design.inc.php

index e6d58d77415791f9d334213675d5f09757d3048e..6c48f9ba22c322de9580d8259a7e618669f34b63 100644 (file)
@@ -24,14 +24,14 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
 <title><?php echo $title_page; ?></title>
 <link rel="shortcut icon" type="image/x-icon" href="../adminer/static/favicon.ico" id="favicon">
 <link rel="stylesheet" type="text/css" href="../adminer/static/default.css">
-<?php if ($adminer->head() && file_exists("adminer.css")) { ?>
-<link rel="stylesheet" type="text/css" href="adminer.css">
-<?php } ?>
 <script type="text/javascript">
 var areYouSure = '<?php echo lang('Resend POST data?'); ?>';
 </script>
 <script type="text/javascript" src="../adminer/static/functions.js"></script>
 <script type="text/javascript" src="static/editing.js"></script>
+<?php if ($adminer->head() && file_exists("adminer.css")) { ?>
+<link rel="stylesheet" type="text/css" href="adminer.css">
+<?php } ?>
 
 <body class="<?php echo lang('ltr'); ?> nojs" onclick="return bodyClick(event, '<?php echo js_escape(DB); ?>', '<?php echo js_escape($_GET["ns"]); ?>');" onkeydown="bodyKeydown(event);" onload="bodyLoad('<?php echo (is_object($connection) ? substr($connection->server_info, 0, 3) : ""); ?>');<?php echo (isset($_COOKIE["adminer_version"]) ? "" : " verifyVersion();"); ?>">
 <script type="text/javascript">