XH 1.6.6: Template uses short PHP tags

A place to report and discuss bugs - please mention CMSimple-version, server, platform and browser version
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

XH 1.6.6: Template uses short PHP tags

Post by cmb » Mon May 11, 2015 11:49 am

Hi everybody,

as reported by rbender in a German thread the responsivehtml template uses short PHP tags, which are not necessarily allowed before PHP 5.4.

I propose to apply the following patch for XH 1.6.7:

Code: Select all

Index: templates/responsivehtml/template.htm
===================================================================
--- templates/responsivehtml/template.htm	(revision 1515)
+++ templates/responsivehtml/template.htm	(working copy)
@@ -10,7 +10,7 @@
 <![endif]-->
 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
 <?php include $pth['folder']['template'].'xtoc.php'; ?>
-<link rel="shortcut icon" href="<?=$pth['folder']['templateimages']?>favicon.ico">
+<link rel="shortcut icon" href="<?php echo $pth['folder']['templateimages']?>favicon.ico">
 </head>
 <body id="body" <?php echo onload();?>>
 <!-- utf-8 check: äöüß -->
@@ -29,7 +29,7 @@
     <div style="clear: both;"></div>
     <div id="navi">
         <div id="menu">
-        <div id="search"><?php echo searchbox();?><div id="iconmenu"><img src="<?=$pth['folder']['templateimages']?>menu.png" alt="MENU"></div></div>
+        <div id="search"><?php echo searchbox();?><div id="iconmenu"><img src="<?php echo $pth['folder']['templateimages']?>menu.png" alt="MENU"></div></div>
         <?php echo xtoc();?></div>
         <div style="clear: both;"></div>
         <div id="menu2">
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: XH 1.6.6: Template uses short PHP tags

Post by cmb » Mon Jun 15, 2015 6:30 pm

Done (r1648, r1649).
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply