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 818adf9ba94d32ba5abe463572c2feb6afd15391 (commit)
from 32f9360dd3d696159cc241ce211b6d7590827476 (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=818adf9ba94d32ba5abe463572c2feb6afd15391
commit 818adf9ba94d32ba5abe463572c2feb6afd15391
Author: Franck Villaume <[email protected]>
Date: Wed Jun 22 09:31:02 2016 +0200
MoinMoin Plugin: fix admin link to get proper quickjump menu
diff --git a/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
b/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
index 43c0eb2..37f2112 100644
--- a/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
+++ b/src/plugins/moinmoin/common/MoinMoinPlugin.class.php
@@ -72,12 +72,23 @@ _("This plugin allows each project to embed MoinMoinWiki
under a tab.");
if (!$project->isProject()) {
return;
}
- if ( $project->usesPlugin ( $this->name ) ) {
- $params['TITLES'][]=$this->text;
- $params['DIRS'][]=$this->getWikiUrl($project);
+ if ($project->usesPlugin($this->name)) {
+ $params['TITLES'][] = $this->text;
+ $params['DIRS'][] = $this->getWikiUrl($project);
$params['TOOLTIPS'][] = _('MoinMoin Space');
- }
- (($params['toptab'] == $this->name) ?
$params['selected']=(count($params['TITLES'])-1) : '' );
+ 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']);
+ }
+ }
+ }
} 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 | 21 ++++++++++++++++-----
1 file changed, 16 insertions(+), 5 deletions(-)
hooks/post-receive
--
FusionForge
_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits