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  35de13a23e2a194c3f021031f3d12bedb7f9ec55 (commit)
      from  fa3d3bac65a88162ef8edb2b85b83ec228df1847 (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=35de13a23e2a194c3f021031f3d12bedb7f9ec55

commit 35de13a23e2a194c3f021031f3d12bedb7f9ec55
Author: Franck Villaume <[email protected]>
Date:   Sun Jun 12 19:11:45 2016 +0200

    frs actions: make it generic

diff --git a/src/www/frs/index.php b/src/www/frs/index.php
index 78146b3..af62a9c 100644
--- a/src/www/frs/index.php
+++ b/src/www/frs/index.php
@@ -86,20 +86,8 @@ if($content_type != $default_content_type) {
 
 /* everything sounds ok, now let do the job */
 $action = getStringFromRequest('action');
-switch ($action) {
-       case 'addfile':
-       case 'addpackage':
-       case 'addrelease':
-       case 'deletefile':
-       case 'deletepackage':
-       case 'deleterelease':
-       case 'editfile':
-       case 'editrelease':
-       case 'monitor':
-       case 'updatepackage': {
-               include ($gfcommon.'frs/actions/'.$action.'.php');
-               break;
-       }
+if 
(file_exists(forge_get_config('source_path').'/common/frs/actions/'.$action.'.php'))
 {
+       
include(forge_get_config('source_path').'/common/frs/actions/'.$action.'.php');
 }
 
 html_use_jqueryui();

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

Summary of changes:
 src/www/frs/index.php | 16 ++--------------
 1 file changed, 2 insertions(+), 14 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