From 02a7c88b81977da0afcd891da165965bfb0cf876 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 18 Sep 2021 01:35:50 +0200 Subject: [PATCH] cosmetics --- _prepend.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/_prepend.php b/_prepend.php index 76734ad..4a59052 100644 --- a/_prepend.php +++ b/_prepend.php @@ -15,12 +15,12 @@ if (!defined('DC_RC_PATH')) { return; } -global $__autoload; +$d = dirname(__FILE__) . '/inc/'; -$__autoload['dcTranslater'] = dirname(__FILE__) . '/inc/class.dc.translater.php'; -$__autoload['translaterRest'] = dirname(__FILE__) . '/inc/class.translater.rest.php'; -$__autoload['translaterProposals'] = dirname(__FILE__) . '/inc/class.translater.proposals.php'; +$__autoload['dcTranslater'] = $d . 'class.dc.translater.php'; +$__autoload['translaterRest'] = $d . 'class.translater.rest.php'; +$__autoload['translaterProposals'] = $d . 'class.translater.proposals.php'; -$__autoload['translaterProposalTool'] = dirname(__FILE__) . '/inc/lib.translater.proposal.php'; -$__autoload['googleProposalTool'] = dirname(__FILE__) . '/inc/lib.translater.google.php'; -$__autoload['microsoftProposalTool'] = dirname(__FILE__) . '/inc/lib.translater.microsoft.php'; \ No newline at end of file +$__autoload['translaterProposalTool'] = $d . 'lib.translater.proposal.php'; +$__autoload['googleProposalTool'] = $d . 'lib.translater.google.php'; +$__autoload['microsoftProposalTool'] = $d . 'lib.translater.microsoft.php'; \ No newline at end of file