Skip to content

Commit 398e4fa

Browse files
committed
3.1.0
1 parent 21cdfaf commit 398e4fa

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/global/code/Themes.class.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* This file defines all methods relating to Form Tools themes. Note: the Theme setting tab/page
66
* is updated via Settings::updateThemeSettings.
77
*
8-
* @copyright Benjamin Keen 2018
8+
* @copyright Benjamin Keen 2023
99
* @author Benjamin Keen <[email protected]>
10-
* @package 3-0-x
10+
* @package 3-1-x
1111
* @subpackage Themes
1212
*/
1313

@@ -25,7 +25,7 @@ public static function getList($enabled_only = false)
2525
$enabled_only_clause = ($enabled_only) ? "WHERE is_enabled = 'yes'" : "";
2626

2727
$db->query("
28-
SELECT *
28+
SELECT *
2929
FROM {PREFIX}themes
3030
$enabled_only_clause
3131
ORDER BY theme_name
@@ -99,9 +99,9 @@ public static function updateThemeList()
9999
try {
100100
foreach ($themes as $theme_info) {
101101
$db->query("
102-
INSERT INTO {PREFIX}themes (theme_folder, theme_name, uses_swatches, swatches, author, theme_link,
102+
INSERT INTO {PREFIX}themes (theme_folder, theme_name, uses_swatches, swatches, author, theme_link,
103103
description, is_enabled, theme_version)
104-
VALUES (:folder, :theme_name, :theme_uses_swatches, :swatches, :theme_author, :theme_link,
104+
VALUES (:folder, :theme_name, :theme_uses_swatches, :swatches, :theme_author, :theme_link,
105105
:theme_description, :is_enabled, :theme_version)
106106
");
107107
$db->bindAll(array(
@@ -261,7 +261,7 @@ public static function displayModulePage($module_folder, $template, $page_vars =
261261
$LANG[$module_folder] = $module_lang_strings;
262262
$smarty->assign("L", $module_lang_strings);
263263

264-
extract(Hooks::processHookCalls("end", compact("account_type", "module_folder"), array()), EXTR_OVERWRITE);
264+
extract(Hooks::processHookCalls("end", compact("module_folder"), array()), EXTR_OVERWRITE);
265265

266266
$settings = Sessions::getWithFallback("settings", array());
267267
$smarty->assign("settings", $settings);
@@ -316,7 +316,7 @@ public static function displayModulePage($module_folder, $template, $page_vars =
316316

317317
$smarty->assign("module_folder", $module_folder);
318318

319-
extract(Hooks::processHookCalls("main", compact("g_smarty", "template", "page_vars"), array("g_smarty")), EXTR_OVERWRITE);
319+
extract(Hooks::processHookCalls("main", compact("smarty", "template", "page_vars"), array("g_smarty")), EXTR_OVERWRITE);
320320

321321
$smarty->display("$root_dir/modules/$module_folder/$template");
322322
}

0 commit comments

Comments
 (0)