Use __DIR__ directly

Change-Id: Ie9f94fc91d3e582d332c3a4f26917b7f3e033ffa
This commit is contained in:
Kunal Mehta 2014-12-30 11:04:51 -08:00
parent ebc4667a1b
commit 5ed7e42d1b

View file

@ -28,8 +28,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
exit;
}
$dir = __DIR__;
require_once $dir . '/ConfirmEdit.php';
require_once __DIR__ . '/ConfirmEdit.php';
$wgCaptchaClass = 'QuestyCaptcha';
global $wgCaptchaQuestions;
@ -45,5 +44,5 @@ $wgCaptchaQuestions = array(
*/
$wgMessagesDirs['QuestyCaptcha'] = __DIR__ . '/i18n/questy';
$wgExtensionMessagesFiles['QuestyCaptcha'] = $dir . '/QuestyCaptcha.i18n.php';
$wgAutoloadClasses['QuestyCaptcha'] = $dir . '/QuestyCaptcha.class.php';
$wgExtensionMessagesFiles['QuestyCaptcha'] = __DIR__ . '/QuestyCaptcha.i18n.php';
$wgAutoloadClasses['QuestyCaptcha'] = __DIR__ . '/QuestyCaptcha.class.php';