5
5
* This file defines all methods relating to Form Tools themes. Note: the Theme setting tab/page
6
6
* is updated via Settings::updateThemeSettings.
7
7
*
8
- * @copyright Benjamin Keen 2018
8
+ * @copyright Benjamin Keen 2023
9
9
* @author Benjamin Keen <[email protected] >
10
- * @package 3-0 -x
10
+ * @package 3-1 -x
11
11
* @subpackage Themes
12
12
*/
13
13
@@ -25,7 +25,7 @@ public static function getList($enabled_only = false)
25
25
$ enabled_only_clause = ($ enabled_only ) ? "WHERE is_enabled = 'yes' " : "" ;
26
26
27
27
$ db ->query ("
28
- SELECT *
28
+ SELECT *
29
29
FROM {PREFIX}themes
30
30
$ enabled_only_clause
31
31
ORDER BY theme_name
@@ -99,9 +99,9 @@ public static function updateThemeList()
99
99
try {
100
100
foreach ($ themes as $ theme_info ) {
101
101
$ 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,
103
103
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,
105
105
:theme_description, :is_enabled, :theme_version)
106
106
" );
107
107
$ db ->bindAll (array (
@@ -261,7 +261,7 @@ public static function displayModulePage($module_folder, $template, $page_vars =
261
261
$ LANG [$ module_folder ] = $ module_lang_strings ;
262
262
$ smarty ->assign ("L " , $ module_lang_strings );
263
263
264
- extract (Hooks::processHookCalls ("end " , compact ("account_type " , " module_folder " ), array ()), EXTR_OVERWRITE );
264
+ extract (Hooks::processHookCalls ("end " , compact ("module_folder " ), array ()), EXTR_OVERWRITE );
265
265
266
266
$ settings = Sessions::getWithFallback ("settings " , array ());
267
267
$ smarty ->assign ("settings " , $ settings );
@@ -316,7 +316,7 @@ public static function displayModulePage($module_folder, $template, $page_vars =
316
316
317
317
$ smarty ->assign ("module_folder " , $ module_folder );
318
318
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 );
320
320
321
321
$ smarty ->display ("$ root_dir/modules/ $ module_folder/ $ template " );
322
322
}
0 commit comments