Skip to content

Commit cf7a66d

Browse files
committed
minor updates
1 parent 61ca21b commit cf7a66d

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

code/General.class.php

-5
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ public static function getModuleConfigFileContents($module_folder)
9292
if (is_file("$root_dir/modules/$module_folder/module_config.php")) {
9393
$is_compatible = true;
9494
require_once("$root_dir/modules/$module_folder/module_config.php");
95-
} else {
96-
if (is_file("$root_dir/modules/$module_folder/database_integrity.php")) {
97-
$is_compatible = true;
98-
require_once("$root_dir/modules/$module_folder/database_integrity.php");
99-
}
10095
}
10196

10297
$return_info = array(

tables.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212

1313
// $tables: array of table names without prefix
1414
//use FormTools\Modules\SystemCheck\Generation;
15-
//echo Generation::generateDbConfigFile(Core::getCoreTables()); // Core
16-
//echo sc_generate_db_config_file($tables, "module"); // Module
17-
////exit;
15+
//$tables = array("module_pages", "module_pages_clients");
16+
////echo Generation::generateDbConfigFile(Core::getCoreTables()); // Core
17+
//echo Generation::generateDbConfigFile($tables, "module"); // Core
18+
//exit;
1819

1920
$word_testing_uc = mb_strtoupper($L["word_untested"]);
2021
$word_passed_uc = mb_strtoupper($L["word_passed"]);

templates/hooks.tpl

+5-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@
3939
<th>{$LANG.word_version}</th>
4040
<th>{$L.word_result}</th>
4141
</tr>
42+
{assign var=has_one_enabled value=false}
4243
{foreach from=$module_list item=module_info}
4344
{assign var=has_hooks value=$module_info.module_config.hooks|@count}
4445
<tr {if !$has_hooks}class="no_test"{/if}>
4546
<td align="center">
4647
{if $has_hooks}
48+
{assign var=has_one_enabled value=true}
4749
<input type="checkbox" class="components" value="{$module_info.module_id}" checked="checked" />
4850
{/if}
4951
</td>
@@ -67,6 +69,7 @@
6769
{/foreach}
6870
</table>
6971

72+
{if $has_one_enabled}
7073
<p>
7174
<input type="button" value="{$L.phrase_test_selected_components}" onclick="sc_ns.start(sc_ns.init_component_hook_test)" />
7275
</p>
@@ -85,7 +88,7 @@
8588
</td>
8689
</tr>
8790
</table>
88-
91+
{/if}
8992
{/if}
9093

91-
{include file='modules_footer.tpl'}
94+
{include file='modules_footer.tpl'}

0 commit comments

Comments
 (0)