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 39188655539bdd7661bbe03990b1799e57574a6f (commit)
from c29f76564b6e743f86c6ec3d811ae18fdfa2823e (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=39188655539bdd7661bbe03990b1799e57574a6f
commit 39188655539bdd7661bbe03990b1799e57574a6f
Author: Franck Villaume <[email protected]>
Date: Sun Jun 26 12:57:47 2016 +0200
coding style
diff --git a/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
b/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
index 37f2112..1bca1dc 100644
--- a/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
+++ b/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
@@ -3,13 +3,14 @@
/**
* MoinMoinPlugin Class
*
+ * Copyright 2016, Franck Villaume - TrivialDev
+ * http://fusionforge.org
*
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
+ * This file is part of FusionForge. FusionForge is free software;
+ * you can redistribute it and/or modify it under the terms of the
+ * GNU General Public License as published by the Free Software
+ * Foundation; either version 2 of the Licence, or (at your option)
+ * any later version.
*
* FusionForge is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -17,7 +18,7 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
+ * with FusionForge; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
@@ -73,22 +74,19 @@ _("This plugin allows each project to embed MoinMoinWiki
under a tab.");
return;
}
if ($project->usesPlugin($this->name)) {
- $params['TITLES'][] = $this->text;
+ $params['TITLES'][] = $this->text;
$params['DIRS'][] = $this->getWikiUrl($project);
$params['TOOLTIPS'][] = _('MoinMoin Space');
- if (session_loggedin()) {
- $user = session_get_user();
- $userperm = $project->getPermission();
- if ($userperm->isAdmin()) {
- $params['ADMIN'][] = '';
- }
- }
- if(isset($params['toptab'])){
- if($params['toptab'] == $this->name) {
- $params['selected'] =
array_search($this->text, $params['TITLES']);
- }
- }
- }
+ if (session_loggedin()) {
+ $userperm = $project->getPermission();
+ if ($userperm->isAdmin()) {
+ $params['ADMIN'][] = '';
+ }
+ }
+ if(isset($params['toptab']) &&
$params['toptab'] == $this->name){
+ $params['selected'] =
array_search($this->text, $params['TITLES']);
+ }
+ }
} elseif ($hookname == "groupisactivecheckbox") {
//Check if the group is active
// this code creates the checkbox in the project edit
public info page to activate/deactivate the plugin
-----------------------------------------------------------------------
Summary of changes:
.../moinmoin/common/MoinMoinPlugin.class.php | 40 ++++++++++------------
1 file changed, 19 insertions(+), 21 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits