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  fe66c28dc80bdcc2d9231240f9cf5e7bef933514 (commit)
      from  295c22fd22e253d9e5e23323554aaaf83599f18a (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=fe66c28dc80bdcc2d9231240f9cf5e7bef933514

commit fe66c28dc80bdcc2d9231240f9cf5e7bef933514
Author: Franck Villaume <[email protected]>
Date:   Tue Mar 22 09:21:22 2016 +0100

    feature_boxes: use plugin_hook_by_reference to support plugins correctly

diff --git a/src/www/include/features_boxes.php 
b/src/www/include/features_boxes.php
index 39fb20c..ee217a1 100644
--- a/src/www/include/features_boxes.php
+++ b/src/www/include/features_boxes.php
@@ -3,7 +3,7 @@
  *
  * Copyright 1999-2001 (c) VA Linux Systems
  * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
- * Copyright 2012, Franck Villaume - TrivialDev
+ * Copyright 2012,2016, Franck Villaume - TrivialDev
  * http://fusionforge.org
  *
  * This file is part of FusionForge. FusionForge is free software;
@@ -31,8 +31,10 @@ require_once $gfcommon.'include/Stats.class.php';
 function show_features_boxes() {
        global $HTML;
 
-       plugin_hook ("features_boxes_top", array());
-       $return = '<h2 class="skip">' . _('Features Boxes') . '</h2>';
+       $return = '';
+       $params['returned_text'] = &$return;
+       plugin_hook_by_reference('features_boxes_top', $params);
+       $return .= '<h2 class="skip">' . _('Features Boxes') . '</h2>';
 
        if (forge_get_config('use_project_tags')) {
                $contentTag = tag_cloud();
@@ -63,7 +65,7 @@ function show_features_boxes() {
                           $ff->software_name,
                           $ff->software_version);
        $return .= $HTML->boxBottom();
-       plugin_hook ("features_boxes_bottom", array());
+       plugin_hook_by_reference('features_boxes_bottom', $params);
        return $return;
 }
 

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

Summary of changes:
 src/www/include/features_boxes.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 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