From b357f55bbb3f87eb40643566b31f2f8047536048 Mon Sep 17 00:00:00 2001 From: Mitan Omar Date: Wed, 17 Oct 2018 21:42:44 +0200 Subject: [PATCH] Update m_styles.php the change is in line 75 and 86 . line 75 : we need to check if the plugin is disable or not ; line 86 : if the plugin enable then we will make the template default , or dont do it --- includes/adm/m_styles.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/adm/m_styles.php b/includes/adm/m_styles.php index 07045b1..cea43dd 100755 --- a/includes/adm/m_styles.php +++ b/includes/adm/m_styles.php @@ -72,7 +72,7 @@ if (ip('style_choose') || ig('style_choose')) $plugins_required = array_map('trim', $plugins_required); $query = array( - 'SELECT' => 'plg_name', + 'SELECT' => 'plg_name, plg_disabled', 'FROM' => "{$dbprefix}plugins", ); @@ -83,7 +83,7 @@ if (ip('style_choose') || ig('style_choose')) $plugins_required = array_flip($plugins_required); while ($row = $SQL->fetch_array($result)) { - if (in_array($row['plg_name'], $plugins_required)) + if (in_array($row['plg_name'], $plugins_required) and $row['plg_disabled'] != 1) { unset($plugins_required[$row['plg_name']]); } @@ -232,4 +232,4 @@ if ($dh = @opendir(PATH . 'styles')) } @closedir($dh); -} \ No newline at end of file +}