X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Finc-functions.php;h=fca27c471c3896b8bf7c9f3f2034fc64f27ee293;hb=4da10ba9e4a47d9b4eee4609a185fc7266fab031;hp=e65057863644444865c1357a5414347077002576;hpb=596c8ab32594401ca84abfbfe35513ddfff31bec;p=mailer.git diff --git a/inc/inc-functions.php b/inc/inc-functions.php index e650578636..fca27c471c 100644 --- a/inc/inc-functions.php +++ b/inc/inc-functions.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : Spezielle Funktionen fuer Include-Dateien * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * Copyright (c) 2009 - 2016 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -122,7 +117,7 @@ function loadInclude ($inc) { // Is the include file there? if (!isIncludeReadable($inc)) { // Not there so log it - reportBug(__FUNCTION__, __LINE__, sprintf("Include file %s not found or deprecated.", $inc)); + reportBug(__FUNCTION__, __LINE__, sprintf('Include file %s not found or deprecated.', $inc)); } // END - if // Add the path. This is why we need a trailing slash in config.php @@ -136,10 +131,7 @@ function loadInclude ($inc) { // Loads an include file once function loadIncludeOnce ($inc) { // Is it not loaded? - if (!isset($GLOBALS['load_once'][$inc])) { - // Mark it as loaded - $GLOBALS['load_once'][$inc] = 'loaded'; - + if (!isset($GLOBALS['inc_loaded'][$inc])) { // Then try to load it loadInclude($inc); } // END - if