Missing theme extension fixed in theme_edit/theme_import
[mailer.git] / inc / modules / admin / what-theme_edit.php
index b5a697ffcc3f34e5d018a38491e23c9cb49dd116..7a9024674ed0e38d04001c8d3bc7017d94dee896 100644 (file)
@@ -35,6 +35,9 @@
 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
        require($INC);
+} elseif (!EXT_IS_ACTIVE("theme")) {
+       ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "theme"));
+       return;
 }
 
 // Add description as navigation point