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 "Fix SlotDiffRenderer documentation"
[lhc/web/wiklou.git]
/
includes
/
media
/
XCFHandler.php
diff --git
a/includes/media/XCFHandler.php
b/includes/media/XCFHandler.php
index
0cb618f
..
e2cc1b2
100644
(file)
--- a/
includes/media/XCFHandler.php
+++ b/
includes/media/XCFHandler.php
@@
-49,7
+49,7
@@
class XCFHandler extends BitmapHandler {
* @param array|null $params
* @return array
*/
* @param array|null $params
* @return array
*/
- function getThumbType( $ext, $mime, $params = null ) {
+
public
function getThumbType( $ext, $mime, $params = null ) {
return [ 'png', 'image/png' ];
}
return [ 'png', 'image/png' ];
}
@@
-67,7
+67,7
@@
class XCFHandler extends BitmapHandler {
}
# Forge a return array containing metadata information just like getimagesize()
}
# Forge a return array containing metadata information just like getimagesize()
- # See PHP documentation at: https://
secure
.php.net/getimagesize
+ # See PHP documentation at: https://
www
.php.net/getimagesize
return [
0 => $header['width'],
1 => $header['height'],
return [
0 => $header['width'],
1 => $header['height'],
@@
-186,7
+186,7
@@
class XCFHandler extends BitmapHandler {
*
* @param File $file The file object for the file in question
* @param string $metadata Serialized metadata
*
* @param File $file The file object for the file in question
* @param string $metadata Serialized metadata
- * @return bool One of the self::METADATA_(BAD|GOOD|COMPATIBLE) constants
+ * @return bool
|int
One of the self::METADATA_(BAD|GOOD|COMPATIBLE) constants
*/
public function isMetadataValid( $file, $metadata ) {
if ( !$metadata ) {
*/
public function isMetadataValid( $file, $metadata ) {
if ( !$metadata ) {