diff --git a/app/extensions/extensions.php b/app/extensions/extensions.php index 9c13c0f2c9..7ebf6cecd6 100644 --- a/app/extensions/extensions.php +++ b/app/extensions/extensions.php @@ -74,10 +74,10 @@ $sql_mod .= ") "; } -require_once "resources/header.php"; -$document['title'] = $text['title-extensions']; - -require_once "resources/paging.php"; +//additional includes + require_once "resources/header.php"; + $document['title'] = $text['title-extensions']; + require_once "resources/paging.php"; //get total extension count from the database $sql = "select "; @@ -167,11 +167,12 @@ require_once "resources/paging.php"; echo th_order_by('call_group', $text['label-call_group'], $order_by, $order); //echo th_order_by('voicemail_mail_to', $text['label-voicemail_mail_to'], $order_by, $order); echo th_order_by('user_context', $text['label-user_context'], $order_by, $order); - echo th_order_by('enabled', $text['label-enabled'], $order_by, $order); - echo th_order_by('description', $text['label-description'], $order_by, $order); if (permission_exists('extension_registered')) { echo th_order_by('description', $text['label-is_registered'], $order_by, $order); } + echo th_order_by('enabled', $text['label-enabled'], $order_by, $order); + echo th_order_by('description', $text['label-description'], $order_by, $order); + echo "\n"; if (permission_exists('extension_add')) { if ($_SESSION['limit']['extensions']['numeric'] == '' || ($_SESSION['limit']['extensions']['numeric'] != '' && $total_extensions < $_SESSION['limit']['extensions']['numeric'])) { @@ -206,8 +207,7 @@ require_once "resources/paging.php"; echo " ".$row['call_group']." \n"; //echo " ".$row['voicemail_mail_to']." \n"; echo " ".$row['user_context']."\n"; - echo " ".ucwords($row['enabled'])."\n"; - echo " ".$row['description']." \n"; + if (permission_exists('extension_registered')) { echo " "; $found = false; @@ -226,6 +226,9 @@ require_once "resources/paging.php"; echo " \n"; } + echo " ".ucwords($row['enabled'])."\n"; + echo " ".$row['description']." \n"; + echo " "; if (permission_exists('extension_edit')) { echo "$v_link_label_edit";