Skip to content

Commit b4a86c8

Browse files
committed
Updated adjustment for SMS service enability check with Config class.
1 parent b8147c3 commit b4a86c8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

views/app.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
include_once("controller/account.php");
44
include_once("controller/apps.php");
55
include_once("controller/session_ctrl.php");
6-
include_once("controller/sms_service.php");
76

87
if(!isset($_GET["id"]) || empty($_GET["id"]) || !Apps::validateId($_GET["id"])) {
98
header("Location: ?");
@@ -118,7 +117,7 @@
118117
Authentication
119118
</a>
120119

121-
<?php if(isSMSServiceEnabled()) { ?>
120+
<?php if(Config::isSMSServiceEnabled()) { ?>
122121
<a href="<?php echo "?page=app&id=".$appId."&section=sms"; ?>" class="btn btn-primary">
123122
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" stroke="currentColor" width="14" height="14" class="board-icons">
124123
<path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" />
@@ -181,7 +180,7 @@
181180
</svg>
182181
</a>
183182

184-
<?php if(isSMSServiceEnabled()) { ?>
183+
<?php if(Config::isSMSServiceEnabled()) { ?>
185184
<a href="<?php echo "?page=app&id=".$appId."&section=sms"; ?>" class="btn btn-primary">
186185
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.0" stroke="currentColor" width="14" height="14" class="board-icons">
187186
<path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" />

0 commit comments

Comments
 (0)