mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Replace the DOCUMENT_ROOT and PROJECT_ROOT variables
Use the __DIR__ constant and dirname as needed
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
//registration count
|
||||
$registrations = '';
|
||||
if (permission_exists('switch_registrations') && file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/registrations/")) {
|
||||
if (permission_exists('switch_registrations') && file_exists(dirname(__DIR__, 4)."/app/registrations/")) {
|
||||
$registration = new registrations;
|
||||
if (permission_exists("registration_all")) {
|
||||
$registration->show = 'all';
|
||||
|
||||
Reference in New Issue
Block a user