]> git.mxchange.org Git - mailer.git/blobdiff - inc/inc-functions.php
Code cosmetics applied, performance hacks (saved two loops):
[mailer.git] / inc / inc-functions.php
index 163fec15f76069ca49b730fd6b519604329ab076..3c44f48213a4178f3392e4e06a4115aa5249db6c 100644 (file)
@@ -131,9 +131,6 @@ function loadInclude ($inc) {
 
 // Loads an include file once
 function loadIncludeOnce ($inc) {
-       // Remove double path
-       $inc = str_replace(getPath(), '', $inc);
-
        // Is it not loaded?
        if (!isset($GLOBALS['load_once'][$inc])) {
                // Mark it as loaded
@@ -148,9 +145,6 @@ function loadIncludeOnce ($inc) {
 function isIncludeReadable ($inc) {
        // Do we have cache?
        if (!isset($GLOBALS['inc_readable'][$inc])) {
-               // Remove double path
-               $inc = str_replace(getPath(), '', $inc);
-
                // Construct FQFN
                $FQFN = getPath() . $inc;