Jpond has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71952
Change subject: (Bug 50710)Compatibility File::thumbName & File::publish
......................................................................
(Bug 50710)Compatibility File::thumbName & File::publish
Bug: 50710
File.php was changed for parameters on thumbName and publish in Change-Id:
I33932ac0e0294dc13332dce9d4ab00a75d9cdcba
This fix removes the strict error message by adding params to NSOldLocalFile
Strict Standards: Declaration of NSOldLocalFile::publish() should be compatible
with File::thumbName($params, $flags = 0)
Strict Standards: Declaration of NSOldLocalFile::thumbName() should be
compatible with File::thumbName($params, $flags = 0)
Change-Id: Id59d3a4213f058afc4e37006eb508f1b4d45ccf1
---
M NSFileRepo_body.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/NSFileRepo
refs/changes/52/71952/1
diff --git a/NSFileRepo_body.php b/NSFileRepo_body.php
index fa8d836..6596848 100644
--- a/NSFileRepo_body.php
+++ b/NSFileRepo_body.php
@@ -361,14 +361,14 @@
return 'archive/' . $this->getHashPath() .
urlencode( $this->getFileNameStripped(
$this->getArchiveName() ) );
}
- function publish( $srcPath, $flags = 0 ) {
- return NSLocalFile::publish( $srcPath, $flags );
+ function publish( $srcPath, $flags = 0, array $options = array() ) {
+ return NSLocalFile::publish( $srcPath, $flags, $options );
}
function getThumbUrl( $suffix = false ) {
return NSLocalFile::getThumbUrl( $suffix );
}
- function thumbName( $params ) {
- return NSLocalFile::thumbName( $params );
+ function thumbName( $params, $flags = 0 ) {
+ return NSLocalFile::thumbName( $params, $flags );
}
function getThumbPath( $suffix = false ) {
return NSLocalFile::getThumbPath( $suffix );
--
To view, visit https://gerrit.wikimedia.org/r/71952
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id59d3a4213f058afc4e37006eb508f1b4d45ccf1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/NSFileRepo
Gerrit-Branch: master
Gerrit-Owner: Jpond <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits