]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fixed some typos in admins templates.
authorFrançois KUBLER <francois@kubler.org>
Wed, 9 Mar 2011 19:13:52 +0000 (20:13 +0100)
committerFrançois KUBLER <francois@kubler.org>
Wed, 9 Mar 2011 19:13:52 +0000 (20:13 +0100)
* 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
admin/templates/plugins.php
admin/templates/users.php

index 56f85cbbbc5ffe354474f9149fbdc7d7b02e6a38..ad60ad08012ef96cd40a8cfc377d1903ab11b639 100644 (file)
@@ -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>
index 11eb569e3d7f22e8d3460d75b4259f6c035699ed..ef9ef4fa4e957f499fa3bfe78e49be5edaf8516e 100644 (file)
                </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>
index a5dccbe995c4b58f935ab659f29c5f7ec3f81302..6ad10cafc46d5da67690357893de5f0291554b3f 100644 (file)
                </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>
 
                </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>