X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fextensions.php;h=db279cffe9c2c3f5eff5b614d473f39759af26da;hp=7e8fb37f894706ea79d632fece88590fa53ce31c;hb=508228c85fba8448d00865b1639cb8cd7a69e457;hpb=0ee25da287821512e09137a752465f09b6e1a799 diff --git a/inc/extensions.php b/inc/extensions.php index 7e8fb37f89..db279cffe9 100644 --- a/inc/extensions.php +++ b/inc/extensions.php @@ -10,7 +10,12 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Erweiterungen-Management * * -------------------------------------------------------------------- * - * * + * $Revision:: 856 $ * + * $Date:: $ * + * $Tag:: 0.2.1-FINAL $ * + * $Author:: $ * + * Needs to be in all Files and every File needs "svn propset * + * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2008 by Roland Haeder * * For more information visit: http://www.mxchange.org * @@ -52,14 +57,12 @@ function LOAD_EXTENSION ($ext_name, $EXT_LOAD_MODE = "", $EXT_VER = "", $dry_run return false; } // END - if - // Construct FQFN for extension file - $FQFN = sprintf("%sinc/extensions/ext-%s.php", - constant('PATH'), - $ext_name - ); + // Construct include filename and FQFN for extension file + $INC = sprintf("inc/extensions/ext-%s.php", $ext_name); + $FQFN = constant('PATH') . $INC; // Is the extension file NOT there? - if (!FILE_READABLE($FQFN)) { + if (!INCLUDE_READABLE($INC)) { // Debug message DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Extension %s not found.", $ext_name)); @@ -103,7 +106,7 @@ function LOAD_EXTENSION ($ext_name, $EXT_LOAD_MODE = "", $EXT_VER = "", $dry_run // Include the extension file //* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, "Extension loaded."); - require_once($FQFN); + require($FQFN); // Is this extension deprecated? if (EXT_GET_DEPRECATED() == "Y") { @@ -438,7 +441,7 @@ function EXTENSION_UPDATE ($ext_name, $ext_ver, $dry_run = false) { $start = array_search($ext_ver, $history); // And load SQL queries in order of version history - for ($idx = ($start + 1); $idx < sizeof($history); $idx++) { + for ($idx = ($start + 1); $idx < count($history); $idx++) { // Set extension version $GLOBALS['cache_array']['update_ver'][$ext_name] = $history[$idx];