Backport 1745-1747
[platal.git] / templates / skin / common.header.tpl
index df3498e..fa535d8 100644 (file)
@@ -28,7 +28,9 @@
     <link rel="index"  href="" />
     <link rel="author" href="changelog" />
     <link rel="search" href="search" />
+    {if $smarty.session.perms->hasFlag('user')}
     <link rel="search" type="application/opensearchdescription+xml" href="http://www.polytechnique.org/xorg.opensearch.xml" title="Annuaire Polytechnique.org" />
+    {/if}
     <link rel="help"   href="Xorg/FAQ" />
     <link rel="bookmark" href="http://www.polytechnique.fr/"        title="| Ă‰cole polytechnique" />
     <link rel="bookmark" href="http://www.polytechnique.edu/"       title="| Institutionnal site" />
@@ -47,6 +49,9 @@
     </style>
     {/foreach}
     <link rel="stylesheet" type="text/css" href="css/print.css" media="print"/>
+    <script type="text/javascript">
+      var platal_baseurl = "{$globals->baseurl}/";
+    </script>
     {foreach from=$xorg_js item=js}
     <script type="text/javascript" src="javascript/{$js}"></script>
     {/foreach}