diff --git a/core/groups/group_edit.php b/core/groups/group_edit.php
index e0d0e34f5a..3d29e3e64f 100644
--- a/core/groups/group_edit.php
+++ b/core/groups/group_edit.php
@@ -27,9 +27,9 @@
//includes
require_once "root.php";
require_once "resources/require.php";
+ require_once "resources/check_auth.php";
//check permissions
- require_once "resources/check_auth.php";
if (permission_exists('group_add') || permission_exists('group_edit')) {
//access granted
}
@@ -152,6 +152,7 @@
$token = $object->create($_SERVER['PHP_SELF']);
//show the header
+ $document['title'] = $text['title-group'];
require_once "resources/header.php";
//show the content
diff --git a/core/groups/groups.php b/core/groups/groups.php
index d364a41bd2..8a420216c3 100644
--- a/core/groups/groups.php
+++ b/core/groups/groups.php
@@ -130,12 +130,15 @@
$token = $object->create($_SERVER['PHP_SELF']);
//include the header
+ $document['title'] = $text['title-groups'];
require_once "resources/header.php";
//show the content
echo "
\n";
echo "
".$text['title-groups']." (".$num_rows.")
\n";
echo "
\n";
+ echo button::create(['type'=>'button','label'=>$text['button-users'],'icon'=>$_SESSION['theme']['button_icon_users'],'onclick'=>"window.location='../users/users.php'"]);
+ echo button::create(['type'=>'button','label'=>$text['button-restore_default'],'icon'=>$_SESSION['theme']['button_icon_sync'],'style'=>'margin-right: 15px;','onclick'=>"window.location='permissions_default.php'"]);
if (permission_exists('group_add')) {
echo button::create(['type'=>'button','label'=>$text['button-add'],'icon'=>$_SESSION['theme']['button_icon_add'],'link'=>'group_edit.php']);
}
@@ -157,10 +160,6 @@
echo button::create(['type'=>'button','label'=>$text['button-show_all'],'icon'=>$_SESSION['theme']['button_icon_all'],'link'=>'?show=all']);
}
}
-
- echo button::create(['type'=>'button','label'=>$text['button-users'],'icon'=>$_SESSION['theme']['button_icon_users'],'onclick'=>"window.location='../users/users.php'"]);
- echo button::create(['type'=>'button','label'=>$text['button-restore_default'],'icon'=>$_SESSION['theme']['button_icon_sync'],'onclick'=>"window.location='permissions_default.php'"]);
-
echo "";
echo button::create(['label'=>$text['button-search'],'icon'=>$_SESSION['theme']['button_icon_search'],'type'=>'submit','id'=>'btn_search','style'=>($search != '' ? 'display: none;' : null)]);
echo button::create(['label'=>$text['button-reset'],'icon'=>$_SESSION['theme']['button_icon_reset'],'type'=>'button','id'=>'btn_reset','link'=>'groups.php','style'=>($search == '' ? 'display: none;' : null)]);