X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fwrapper-functions.php;h=fe5834dcd714c9193771088455116752f3d19e7a;hp=4324ae39c9ebfd4c9805e5c99424d868b8e44a5d;hb=1d22c70e65e858422ee0d17a7612f4b5c0757a42;hpb=5db6eec1f733feda6977091029680a8b12396560 diff --git a/inc/wrapper-functions.php b/inc/wrapper-functions.php index 4324ae39c9..fe5834dcd7 100644 --- a/inc/wrapper-functions.php +++ b/inc/wrapper-functions.php @@ -326,7 +326,7 @@ function isInstalling () { // Determine whether we are installing if (!isset($GLOBALS['__mailer_installing'])) { // Check URL (css.php/js.php need this) - $GLOBALS['__mailer_installing'] = isGetRequestElementSet('installing'); + $GLOBALS['__mailer_installing'] = (isGetRequestElementSet('installing') || ((isGetRequestElementSet('level')) && (getRequestElement('level') == 'install'))); } // END - if // Return result @@ -3354,5 +3354,23 @@ function encodeJson ($data) { return json_encode($data, JSON_FORCE_OBJECT); } +// Get all extension files +function loadAllExtensionsByTemplate () { + // Get all + $extensions = getArrayFromDirectory( + 'templates/' . getLanguage() . '/html/ext/', + 'ext_', + false, + false, + array(), + '.tpl', + '@(\.|\.\.)$@', + false + ); + + // Return them + return $extensions; +} + // [EOF] ?>