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
Avoid arithmetics on localized number string ("0,04") in SpecialWatchlist
[lhc/web/wiklou.git]
/
includes
/
media
/
DjVu.php
diff --git
a/includes/media/DjVu.php
b/includes/media/DjVu.php
index
eb7b6ba
..
2541e35
100644
(file)
--- a/
includes/media/DjVu.php
+++ b/
includes/media/DjVu.php
@@
-265,9
+265,9
@@
class DjVuHandler extends ImageHandler {
return $metadata;
}
return $metadata;
}
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$unser = unserialize( $metadata );
$unser = unserialize( $metadata );
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
if ( is_array( $unser ) ) {
if ( isset( $unser['error'] ) ) {
return false;
if ( is_array( $unser ) ) {
if ( isset( $unser['error'] ) ) {
return false;
@@
-321,7
+321,7
@@
class DjVuHandler extends ImageHandler {
* @return array
*/
protected function extractTreesFromMetadata( $metadata ) {
* @return array
*/
protected function extractTreesFromMetadata( $metadata ) {
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
try {
// Set to false rather than null to avoid further attempts
$metaTree = false;
try {
// Set to false rather than null to avoid further attempts
$metaTree = false;
@@
-344,7
+344,7
@@
class DjVuHandler extends ImageHandler {
} catch ( Exception $e ) {
wfDebug( "Bogus multipage XML metadata\n" );
}
} catch ( Exception $e ) {
wfDebug( "Bogus multipage XML metadata\n" );
}
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
return [ 'MetaTree' => $metaTree, 'TextTree' => $textTree ];
}
return [ 'MetaTree' => $metaTree, 'TextTree' => $textTree ];
}