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  83153b530d4ef6e2b4ff211cde83979a19238fa8 (commit)
      from  bd254479d7291a1fe469f5ac98c1ab8b07e67a76 (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=83153b530d4ef6e2b4ff211cde83979a19238fa8

commit 83153b530d4ef6e2b4ff211cde83979a19238fa8
Author: Franck Villaume <[email protected]>
Date:   Sun Oct 23 15:50:56 2016 +0200

    use more generic code to include views

diff --git a/src/common/frs/views/views.php b/src/common/frs/views/views.php
index 737394d..fae59f2 100644
--- a/src/common/frs/views/views.php
+++ b/src/common/frs/views/views.php
@@ -26,16 +26,6 @@
 global $gfcommon;
 
 $view = getStringFromRequest('view', 'listpackages');
-switch ($view) {
-       case 'admin':
-       case 'deleterelease':
-       case 'editrelease':
-       case 'listpackages':
-       case 'qrs':
-       case 'reporting':
-       case 'shownotes':
-       case 'showreleases': {
-               include ($gfcommon.'frs/views/'.$view.'.php');
-               break;
-       }
+if 
(file_exists(forge_get_config('source_path').'/common/frs/views/'.$view.'.php'))
 {
+       
include(forge_get_config('source_path').'/common/frs/views/'.$view.'.php');
 }

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

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