dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add filter to `Special:BlockList` to exclude indefinite blocks"
[lhc/web/wiklou.git]
/
includes
/
media
/
ImageHandler.php
diff --git
a/includes/media/ImageHandler.php
b/includes/media/ImageHandler.php
index
a0a1603
..
302e743
100644
(file)
--- a/
includes/media/ImageHandler.php
+++ b/
includes/media/ImageHandler.php
@@
-74,7
+74,7
@@
abstract class ImageHandler extends MediaHandler {
}
}
}
}
- function getScriptParams( $params ) {
+
protected
function getScriptParams( $params ) {
return [ 'width' => $params['width'] ];
}
return [ 'width' => $params['width'] ];
}
@@
-83,7
+83,7
@@
abstract class ImageHandler extends MediaHandler {
* @param array &$params
* @return bool
*/
* @param array &$params
* @return bool
*/
- function normaliseParams( $image, &$params ) {
+
public
function normaliseParams( $image, &$params ) {
$mimeType = $image->getMimeType();
if ( !isset( $params['width'] ) ) {
$mimeType = $image->getMimeType();
if ( !isset( $params['width'] ) ) {
@@
-238,7
+238,7
@@
abstract class ImageHandler extends MediaHandler {
* @param File $file
* @return string
*/
* @param File $file
* @return string
*/
- function getLongDesc( $file ) {
+
public
function getLongDesc( $file ) {
global $wgLang;
$pages = $file->pageCount();
$size = htmlspecialchars( $wgLang->formatSize( $file->getSize() ) );
global $wgLang;
$pages = $file->pageCount();
$size = htmlspecialchars( $wgLang->formatSize( $file->getSize() ) );