From e316005a56a9dea6f51697a7f5f7a0a15eddcdc7 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Thu, 18 Dec 2014 12:45:17 +0100 Subject: [PATCH] Drh can see wiki see #7064 --- main/wiki/index.php | 8 ++++---- main/wiki/wiki.inc.php | 24 +++++++++++++++--------- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/main/wiki/index.php b/main/wiki/index.php index 12459913ad..105cbe8b5f 100755 --- a/main/wiki/index.php +++ b/main/wiki/index.php @@ -6,9 +6,7 @@ * * @package chamilo.wiki */ -/** - * Code - */ + use \ChamiloSession as Session; // name of the language file that needs to be included @@ -86,7 +84,9 @@ if ($groupId) { if ($group_properties['wiki_state'] == 0) { api_not_allowed(); } elseif ($group_properties['wiki_state']==2) { - if (!api_is_allowed_to_edit(false,true) and !GroupManager :: is_user_in_group(api_get_user_id(), api_get_group_id())) { + if (!api_is_allowed_to_edit(false,true) and + !GroupManager :: is_user_in_group(api_get_user_id(), api_get_group_id()) + ) { api_not_allowed(); } } diff --git a/main/wiki/wiki.inc.php b/main/wiki/wiki.inc.php index 6cb2ae9d69..f4264cb955 100755 --- a/main/wiki/wiki.inc.php +++ b/main/wiki/wiki.inc.php @@ -4314,14 +4314,15 @@ class Wiki // menu home echo '