Skip to content

Commit

Permalink
Updated adjustment for SMS service enability check with Config class.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jul 24, 2024
1 parent b8147c3 commit b4a86c8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions views/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
include_once("controller/account.php");
include_once("controller/apps.php");
include_once("controller/session_ctrl.php");
include_once("controller/sms_service.php");

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

<?php if(isSMSServiceEnabled()) { ?>
<?php if(Config::isSMSServiceEnabled()) { ?>
<a href="<?php echo "?page=app&id=".$appId."&section=sms"; ?>" class="btn btn-primary">
<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">
<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" />
Expand Down Expand Up @@ -181,7 +180,7 @@
</svg>
</a>

<?php if(isSMSServiceEnabled()) { ?>
<?php if(Config::isSMSServiceEnabled()) { ?>
<a href="<?php echo "?page=app&id=".$appId."&section=sms"; ?>" class="btn btn-primary">
<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">
<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" />
Expand Down

0 comments on commit b4a86c8

Please sign in to comment.