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  ce8457adeb9339ed7bfed206d184175f08c5ba10 (commit)
      from  cfff28d94c77d230873a8b1b60b9a19ac119c37c (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 -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=ce8457adeb9339ed7bfed206d184175f08c5ba10

commit ce8457adeb9339ed7bfed206d184175f08c5ba10
Author: Franck Villaume <[email protected]>
Date:   Sun Nov 4 17:36:12 2018 +0100

    use CONSTANT rather than hardcoded string

diff --git a/src/www/my/index.php b/src/www/my/index.php
index 39fa08f..20eda13 100644
--- a/src/www/my/index.php
+++ b/src/www/my/index.php
@@ -43,7 +43,7 @@ $sql = "SELECT l.*
                AND o.owner_id = $2
                AND o.is_default = 1
                ";
-$res = db_query_params($sql,array('u', $user->getID()));
+$res = db_query_params($sql,array(WidgetLayoutManager::OWNER_TYPE_USER, 
$user->getID()));
 $layout_id = db_result($res, 0 , 'id');
 if (!$layout_id) {
        $layout_id = 1;
@@ -51,7 +51,7 @@ if (!$layout_id) {
 
 $ap = html_ap();
 echo html_ao('ul', array('class' => 'widget_toolbar'));
-$url = '/widgets/widgets.php?owner=u'.$user->getID().'&layout_id='.$layout_id;
+$url = 
'/widgets/widgets.php?owner='.WidgetLayoutManager::OWNER_TYPE_USER.$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++) {

-----------------------------------------------------------------------

Summary of changes:
 src/www/my/index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to