Simplify javascript.
[platal.git] / templates / plpage.header.tpl
index cfc421f..f1c50ae 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2009 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2011 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
@@ -42,7 +42,7 @@
 </script>
 {if t($pl_js)}
 {foreach from=$pl_js item=js}
-<script type="text/javascript" src="javascript/{$js}"></script>
+<script type="text/javascript" src="{$js}"></script>
 {/foreach}
 {/if}
 {if t($pl_rss)}
@@ -51,6 +51,8 @@
 {if t($pl_extra_header)}
 {$pl_extra_header|smarty:nodefaults}
 {/if}
+{if t($pl_title)}
 <title>{$pl_title}</title>
+{/if}
 
 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}