[Fusionforge-commits] FusionForge branch master updated. a8c9e03309cbfd1b39d86db54e1c90f85bfb6336
Thorsten Glaser
mirabilos at fusionforge.org
Thu Feb 27 10:35:47 CET 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, master has been updated
via a8c9e03309cbfd1b39d86db54e1c90f85bfb6336 (commit)
from 85c1ec28eed0a893bdf7ac03a487338cb08e2274 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a8c9e03309cbfd1b39d86db54e1c90f85bfb6336
Author: Thorsten Glaser <t.glaser at tarent.de>
Date: Thu Feb 27 10:35:31 2014 +0100
better use the element functions
diff --git a/src/www/my/index.php b/src/www/my/index.php
index 4836b9d..a24a3c1 100644
--- a/src/www/my/index.php
+++ b/src/www/my/index.php
@@ -49,16 +49,15 @@ $sql = "SELECT l.*
$res = db_query_params($sql,array('u', $user->getID()));
$layout_id = db_result($res, 0 , 'id');
+$ap = html_ap();
echo html_ao('ul', array('class' => 'widget_toolbar'));
$url = '/widgets/widgets.php?owner=u'.$user->getID().'&layout_id='.$layout_id;
$labels = array(_('Add widgets'), _('Customize Layout'));
$urls = array($url, $url.'&update=layout');
-for($i = 0; $i < count($urls); $i++) {
- echo html_ao('li');
- echo util_make_link($urls[$i], $labels[$i]);
- echo html_ac(html_ap() -1);
+for ($i = 0; $i < count($urls); $i++) {
+ echo html_e('li', array(), util_make_link($urls[$i], $labels[$i]));
}
-echo html_ac(html_ap() - 1);
+echo html_ac($ap);
$lm = new WidgetLayoutManager();
$lm->displayLayout($user->getID(), WidgetLayoutManager::OWNER_TYPE_USER);
-----------------------------------------------------------------------
Summary of changes:
src/www/my/index.php | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list