[Fusionforge-commits] FusionForge branch Branch_5_3 updated. bb151bf49c509bb5871ff0d9cb810be6fd7aea0c

Franck Villaume nerville at fusionforge.org
Wed Mar 12 15:37:16 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, Branch_5_3 has been updated
       via  bb151bf49c509bb5871ff0d9cb810be6fd7aea0c (commit)
       via  eea6d73e87f88adb98989c86281f1db53fee73ed (commit)
      from  78c2437b509e53ac0611fadd1281ce1c81385317 (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 bb151bf49c509bb5871ff0d9cb810be6fd7aea0c
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Mar 12 15:31:35 2014 +0100

    scm admin: use method post in form

diff --git a/src/www/scm/admin/index.php b/src/www/scm/admin/index.php
index a5576d6..d85a62b 100644
--- a/src/www/scm/admin/index.php
+++ b/src/www/scm/admin/index.php
@@ -137,7 +137,7 @@ scm_header(array('title'=>_('SCM Repository'),'group'=>$group_id));
 		});
 	});
 </script>
-<form action="<?php echo getStringFromServer('PHP_SELF'); ?>">
+<form method="post" action="<?php echo util_make_uri('/scm/admin/?group_id='.$group_id) ?>">
 <?php
 
 	$hook_params = array () ;

commit eea6d73e87f88adb98989c86281f1db53fee73ed
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Wed Mar 12 15:28:48 2014 +0100

    scm admin: fix enable anon scm

diff --git a/src/common/include/SCMPlugin.class.php b/src/common/include/SCMPlugin.class.php
index 217bed0..82fa175 100644
--- a/src/common/include/SCMPlugin.class.php
+++ b/src/common/include/SCMPlugin.class.php
@@ -263,12 +263,10 @@ abstract class SCMPlugin extends Plugin {
 		}
 
 		if ($project->usesPlugin($this->name) ) {
-			if (isset($params['scm_enable_anonymous'])) {
-				if ($params['scm_enable_anonymous']) {
-					$project->SetUsesAnonSCM(true);
-				} else {
-					$project->SetUsesAnonSCM(false);
-				}
+			if (isset($params['scm_enable_anonymous']) && $params['scm_enable_anonymous']) {
+				$project->SetUsesAnonSCM(true);
+			} else {
+				$project->SetUsesAnonSCM(false);
 			}
 		}
 	}

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

Summary of changes:
 src/common/include/SCMPlugin.class.php |   10 ++++------
 src/www/scm/admin/index.php            |    2 +-
 2 files changed, 5 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list