summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--template.php3
-rw-r--r--templates/html.tpl.php2
2 files changed, 4 insertions, 1 deletions
diff --git a/template.php b/template.php
index 3239ec0..763ca77 100644
--- a/template.php
+++ b/template.php
@@ -167,7 +167,10 @@ function zen_add_conditional_styles() {
* The name of the template being rendered ("html" in this case.)
*/
function zen_preprocess_html(&$variables, $hook) {
+ // Add paths needed or html5shim.
+ $variables['base_path'] = base_path();
$variables['path_to_zen'] = drupal_get_path('theme', 'zen');
+
// If the user is silly and enables Zen as the theme, add some styles.
if ($GLOBALS['theme'] == 'zen') {
include_once './' . $variables['path_to_zen'] . '/zen-internals/template.zen.inc';
diff --git a/templates/html.tpl.php b/templates/html.tpl.php
index 1ee692a..5802051 100644
--- a/templates/html.tpl.php
+++ b/templates/html.tpl.php
@@ -66,7 +66,7 @@
<?php print $head; ?>
<title><?php print $head_title; ?></title>
<!--[if lt IE 9]>
-<script src="<?php print $base_path . $path_to_zen; ">/zen-internals/js/html5.js"></script>
+<script src="<?php print $base_path . $path_to_zen; ?>/zen-internals/js/html5.js"></script>
<![endif]-->
<?php print $styles; ?>
<?php print $scripts; ?>