jenkins-bot has submitted this change and it was merged. Change subject: Use __DIR__ ......................................................................
Use __DIR__ Change-Id: Id51d3a084f5af51df3a95730790f5667aa1a23ef --- M TwitterLogin.php 1 file changed, 8 insertions(+), 8 deletions(-) Approvals: Addshore: Looks good to me, approved jenkins-bot: Verified diff --git a/TwitterLogin.php b/TwitterLogin.php index 124cfa4..5782227 100644 --- a/TwitterLogin.php +++ b/TwitterLogin.php @@ -29,13 +29,13 @@ // Create a twiter group $wgGroupPermissions['twitter'] = $wgGroupPermissions['user']; -$wgAutoloadClasses['SpecialTwitterLogin'] = dirname(__FILE__) . '/SpecialTwitterLogin.php'; -$wgAutoloadClasses['TwitterOAuth'] = dirname(__FILE__) . '/twitteroauth/twitteroauth.php'; -$wgAutoloadClasses['MwTwitterOAuth'] = dirname(__FILE__) . '/TwitterLogin.twitteroauth.php'; -$wgAutoloadClasses['TwitterSigninUI'] = dirname(__FILE__) . '/TwitterLogin.body.php'; +$wgAutoloadClasses['SpecialTwitterLogin'] = __DIR__ . '/SpecialTwitterLogin.php'; +$wgAutoloadClasses['TwitterOAuth'] = __DIR__ . '/twitteroauth/twitteroauth.php'; +$wgAutoloadClasses['MwTwitterOAuth'] = __DIR__ . '/TwitterLogin.twitteroauth.php'; +$wgAutoloadClasses['TwitterSigninUI'] = __DIR__ . '/TwitterLogin.body.php'; $wgMessagesDirs['TwitterLogin'] = __DIR__ . '/i18n'; -$wgExtensionAliasFiles['TwitterLogin'] = dirname(__FILE__) .'/TwitterLogin.alias.php'; +$wgExtensionAliasFiles['TwitterLogin'] = __DIR__ .'/TwitterLogin.alias.php'; $wgSpecialPages['TwitterLogin'] = 'SpecialTwitterLogin'; @@ -50,10 +50,10 @@ function efSetupTwitterLoginSchema( $updater ) { $updater->addExtensionUpdate( array( 'addTable', 'twitter_user', - dirname(__FILE__) . '/schema/twitter_user.sql', true ) ); + __DIR__ . '/schema/twitter_user.sql', true ) ); $updater->addExtensionUpdate( array( 'modifyField', 'twitter_user','user_id', - dirname(__FILE__) . '/schema/twitter_user.patch.user_id.sql', true ) ); + __DIR__ . '/schema/twitter_user.patch.user_id.sql', true ) ); $updater->addExtensionUpdate( array( 'modifyField', 'twitter_user','twitter_id', - dirname(__FILE__) . '/schema/twitter_user.patch.twitter_id.sql', true ) ); + __DIR__ . '/schema/twitter_user.patch.twitter_id.sql', true ) ); return true; } -- To view, visit https://gerrit.wikimedia.org/r/225698 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id51d3a084f5af51df3a95730790f5667aa1a23ef Gerrit-PatchSet: 5 Gerrit-Project: mediawiki/extensions/TwitterLogin Gerrit-Branch: master Gerrit-Owner: Paladox <thomasmulhall...@yahoo.com> Gerrit-Reviewer: Addshore <addshorew...@gmail.com> Gerrit-Reviewer: Siebrand <siebr...@kitano.nl> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits