From 10f78a6edd89724422e141d660124413af9700e0 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Wed, 26 Nov 2008 23:17:15 +0000 Subject: [PATCH] Follow up on r43982. Reduce dirname(__FILE__) calls in core and extensions. --- FancyCaptcha.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FancyCaptcha.php b/FancyCaptcha.php index 3d300fc..14a6341 100644 --- a/FancyCaptcha.php +++ b/FancyCaptcha.php @@ -37,6 +37,6 @@ $wgCaptchaDirectoryLevels = 0; // To break into subdirectories global $wgCaptchaSecret; $wgCaptchaSecret = "CHANGE_THIS_SECRET!"; -$wgExtensionMessagesFiles['FancyCaptcha'] = dirname(__FILE__).'/FancyCaptcha.i18n.php'; -$wgAutoloadClasses['FancyCaptcha'] = dirname( __FILE__ ) . '/FancyCaptcha.class.php'; - +$dir = dirname(__FILE__) . '/'; +$wgExtensionMessagesFiles['FancyCaptcha'] = $dir . 'FancyCaptcha.i18n.php'; +$wgAutoloadClasses['FancyCaptcha'] = $dir . 'FancyCaptcha.class.php'; -- 2.39.5