From 1935d85ef1200f7a73cccbca39f0b81ce411850c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fran=C3=A7ois=20KUBLER?= <francois@kubler.org>
Date: Wed, 9 Mar 2011 20:13:52 +0100
Subject: [PATCH] Fixed some typos in admins templates.

* We have to use full tags (<?php) and not short tags (<?)
* We have to use the alternative syntax for control structures (see http://www.php.net/manual/en/control-structures.alternative-syntax.php).
---
 admin/templates/index.php   |  6 +++---
 admin/templates/plugins.php | 12 ++++++------
 admin/templates/users.php   | 14 +++++++-------
 3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/admin/templates/index.php b/admin/templates/index.php
index 56f85cbbbc..ad60ad0801 100644
--- a/admin/templates/index.php
+++ b/admin/templates/index.php
@@ -6,7 +6,7 @@
 <h1>Administration</h1>
 
 <ul>
-	<? foreach( $_["adminpages"] as $i ){ ?>
-		<li><a href="<? echo link_to( $i["app"], $i["file"] ) ?>"><? echo $i["name"] ?></a></li>
-	<? } ?>
+	<?php foreach($_["adminpages"] as $i): ?>
+		<li><a href="<?php echo link_to($i["app"], $i["file"]) ?>"><?php echo $i["name"] ?></a></li>
+	<?php endforeach; ?>
 </ul>
diff --git a/admin/templates/plugins.php b/admin/templates/plugins.php
index 11eb569e3d..ef9ef4fa4e 100644
--- a/admin/templates/plugins.php
+++ b/admin/templates/plugins.php
@@ -17,12 +17,12 @@
 		</tr>
 	</thead>
 	<tbody>
-		<? foreach( $_["plugins"] as $plugin ){ ?>
-			<td><? echo $plugin["info"]["id"] ?></td>
-			<td><? echo $plugin["info"]["version"] ?></td>
-			<td><? echo $plugin["info"]["name"] ?></td>
-			<td><? echo $plugin["info"]["author"] ?></td>
+		<?php foreach($_["plugins"] as $plugin): ?>
+			<td><?php echo $plugin["info"]["id"] ?></td>
+			<td><?php echo $plugin["info"]["version"] ?></td>
+			<td><?php echo $plugin["info"]["name"] ?></td>
+			<td><?php echo $plugin["info"]["author"] ?></td>
 			<td>enable</td>
-		<? } ?>
+		<?php endforeach; ?>
 	</tbody>
 </table>
diff --git a/admin/templates/users.php b/admin/templates/users.php
index a5dccbe995..6ad10cafc4 100644
--- a/admin/templates/users.php
+++ b/admin/templates/users.php
@@ -15,13 +15,13 @@
 		</tr>
 	<thead>
 	<tbody>
-		<? foreach( $_["users"] as $user ){ ?>
+		<?php foreach($_["users"] as $user): ?>
 			<tr>
 				<td><input type="checkbox"></td>
-				<td><? echo $user["name"] ?></td>
-				<td><? echo $user["groups"] ?></td>
+				<td><?php echo $user["name"] ?></td>
+				<td><?php echo $user["groups"] ?></td>
 			</tr>
-		<? } ?>
+		<?php endforeach; ?>
 	</tbody>
 </table>
 
@@ -34,11 +34,11 @@
 		</tr>
 	<thead>
 	<tbody>
-		<? foreach( $_["groups"] as $group ){ ?>
+		<?php foreach($_["groups"] as $group): ?>
 			<tr>
-				<td><? echo $group["name"] ?></td>
+				<td><?php echo $group["name"] ?></td>
 				<td>remove</td>
 			</tr>
-		<? } ?>
+		<?php endforeach; ?>
 	</tbody>
 </table>
-- 
GitLab