Southparkfan has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/172029

Change subject: Use __DIR__ instead of dirname( __FILE__ )
......................................................................

Use __DIR__ instead of dirname( __FILE__ )

Change-Id: Ibd0f9c9baf52d9962ab3fcbfe31e04028aed699c
---
M Nuke.i18n.php
M Nuke.php
M SpecialNuke.php
3 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Nuke 
refs/changes/29/172029/1

diff --git a/Nuke.i18n.php b/Nuke.i18n.php
index a01e3a8..1aded8a 100644
--- a/Nuke.i18n.php
+++ b/Nuke.i18n.php
@@ -15,7 +15,7 @@
        function wfJsonI18nShim1b110e87fcd3a9cb( $cache, $code, &$cachedData ) {
                $codeSequence = array_merge( array( $code ), 
$cachedData['fallbackSequence'] );
                foreach ( $codeSequence as $csCode ) {
-                       $fileName = dirname( __FILE__ ) . "/i18n/$csCode.json";
+                       $fileName = __DIR__ . "/i18n/$csCode.json";
                        if ( is_readable( $fileName ) ) {
                                $data = FormatJson::decode( file_get_contents( 
$fileName ), true );
                                foreach ( array_keys( $data ) as $key ) {
diff --git a/Nuke.php b/Nuke.php
index 12022f2..14f45a3 100644
--- a/Nuke.php
+++ b/Nuke.php
@@ -6,7 +6,7 @@
 
 define( 'Nuke_VERSION', '1.2.0' );
 
-$dir = dirname( __FILE__ ) . '/';
+$dir = __DIR__ . '/';
 
 $wgMessagesDirs['Nuke'] = __DIR__ . '/i18n';
 $wgExtensionMessagesFiles['Nuke'] = $dir . 'Nuke.i18n.php';
@@ -33,7 +33,7 @@
 
 // Resource loader modules
 $moduleTemplate = array(
-       'localBasePath' => dirname( __FILE__ ) . '/',
+       'localBasePath' => __DIR__ . '/',
        'remoteExtPath' => 'Nuke/'
 );
 
diff --git a/SpecialNuke.php b/SpecialNuke.php
index 99fe994..3a8408a 100644
--- a/SpecialNuke.php
+++ b/SpecialNuke.php
@@ -1,2 +1,2 @@
 <?php
-require_once( dirname( __FILE__ ) . '/Nuke.php' );
+require_once( __DIR__ . '/Nuke.php' );

-- 
To view, visit https://gerrit.wikimedia.org/r/172029
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibd0f9c9baf52d9962ab3fcbfe31e04028aed699c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Nuke
Gerrit-Branch: master
Gerrit-Owner: Southparkfan <southparkfan...@hotmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to