Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/246181
Change subject: Use __DIR__
......................................................................
Use __DIR__
Change-Id: I5f52aadf9fda197e2b4801a3a615b67656d5a8bf
---
M DownloadCounter.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DownloadCounter
refs/changes/81/246181/1
diff --git a/DownloadCounter.php b/DownloadCounter.php
index cfe3c94..63fb9e1 100644
--- a/DownloadCounter.php
+++ b/DownloadCounter.php
@@ -24,6 +24,7 @@
}
$wgExtensionCredits['parserhook'][] = array(
+ 'path' => __FILE__,
'name' => 'DownloadCounter',
'version' => '0.3.0',
'author' => 'Eric Petit',
@@ -84,7 +85,6 @@
* @return bool
*/
function efDownloadCounterchemaUpdates( $updater ) {
- $base = dirname( __FILE__ );
- $updater->addExtensionTable( 'downloads_files',
"$base/DownloadCounter.sql" );
+ $updater->addExtensionTable( 'downloads_files', __DIR__ .
'/DownloadCounter.sql' );
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/246181
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5f52aadf9fda197e2b4801a3a615b67656d5a8bf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DownloadCounter
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits