From 0c2a0c643bf50d9639d111e82afab39bdd6eb8ea Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 Mar 2019 14:33:05 +0100 Subject: [PATCH] NEW Performance enhancement: Replace dirname(__FILE__) with __DIR__ --- htdocs/core/lib/website.lib.php | 5 ++--- htdocs/holiday/common.inc.php | 2 +- htdocs/install/upgrade.php | 2 +- htdocs/install/upgrade2.php | 2 +- htdocs/modulebuilder/template/scripts/myobject.php | 2 +- htdocs/website/index.php | 14 +++++++------- htdocs/website/samples/wrapper.html | 2 +- 7 files changed, 14 insertions(+), 15 deletions(-) diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php index 40c12d302c9..972a271c140 100644 --- a/htdocs/core/lib/website.lib.php +++ b/htdocs/core/lib/website.lib.php @@ -22,7 +22,6 @@ */ - /** * Convert a page content to have correct links (based on DOL_URL_ROOT) into an html content. * Used to ouput the page on the Preview from backoffice. @@ -661,7 +660,7 @@ function dolSavePageContent($filetpl, $object, $objectpage) $tplcontent =''; $tplcontent.= "