Cleanup: removed all closing tags in php files.
[fa-stable.git] / admin / inst_module.php
index f92d2c56aef4d53ae7ddf5de89a39818a00c6b0c..d2f482c9f2b354c2bd621751903efee556370b4e 100644 (file)
@@ -42,8 +42,8 @@ function local_extension($id)
                        'active' => false
        );
 
-       if (file_exists($path_to_root.'/modules/'.$id.'/hooks.php')) {
-               include_once($path_to_root.'/modules/'.$id.'/hooks.php');
+       if (file_exists($path_to_root.'/modules/'.clean_file_name($id).'/hooks.php')) {
+               include_once($path_to_root.'/modules/'.clean_file_name($id).'/hooks.php');
        }
        $hooks_class = 'hooks_'.$id;
        if (class_exists($hooks_class, false)) {
@@ -266,4 +266,3 @@ else
 end_form();
 
 end_page();
-?>
\ No newline at end of file