diff --git a/app/sip_profiles/sip_profile_edit.php b/app/sip_profiles/sip_profile_edit.php index 39e4d8042b..d84876f3e7 100644 --- a/app/sip_profiles/sip_profile_edit.php +++ b/app/sip_profiles/sip_profile_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('sip_profile_add') || permission_exists('sip_profile_edit')) { //access granted } @@ -250,6 +250,7 @@ $token = $object->create($_SERVER['PHP_SELF']); //show the header + $document['title'] = $text['title-sip_profile']; require_once "resources/header.php"; //label to form input diff --git a/app/sip_profiles/sip_profiles.php b/app/sip_profiles/sip_profiles.php index 89a35de1c0..51ebb2a6cb 100644 --- a/app/sip_profiles/sip_profiles.php +++ b/app/sip_profiles/sip_profiles.php @@ -112,6 +112,7 @@ $token = $object->create($_SERVER['PHP_SELF']); //additional includes + $document['title'] = $text['title-sip_profiles']; require_once "resources/header.php"; //show the content