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
Doc fixes for MediaHandler. No behaviour changes.
[lhc/web/wiklou.git]
/
includes
/
media
/
XMPValidate.php
diff --git
a/includes/media/XMPValidate.php
b/includes/media/XMPValidate.php
index
b7b35dc
..
3e29c12
100644
(file)
--- a/
includes/media/XMPValidate.php
+++ b/
includes/media/XMPValidate.php
@@
-214,7
+214,7
@@
class XMPValidate {
// this only validates standalone properties, not arrays, etc
return;
}
// this only validates standalone properties, not arrays, etc
return;
}
- if ( !preg_match( '/^[-A-Za-z0-9]{2,}$/D', $val) ) {
+ if ( !preg_match( '/^[-A-Za-z0-9]{2,}$/D', $val
) ) {
//this is a rather naive check.
wfDebugLog( 'XMP', __METHOD__ . " Expected Lang code but got $val" );
$val = null;
//this is a rather naive check.
wfDebugLog( 'XMP', __METHOD__ . " Expected Lang code but got $val" );
$val = null;
@@
-346,8
+346,8
@@
class XMPValidate {
$val, $m )
) {
$coord = intval( $m[1] );
$val, $m )
) {
$coord = intval( $m[1] );
- $coord += intval( $m[2] ) * (
1/60
);
- $coord += intval( $m[3] ) * (
1/3600
);
+ $coord += intval( $m[2] ) * (
1 / 60
);
+ $coord += intval( $m[3] ) * (
1 / 3600
);
if ( $m[4] === 'S' || $m[4] === 'W' ) {
$coord = -$coord;
}
if ( $m[4] === 'S' || $m[4] === 'W' ) {
$coord = -$coord;
}
@@
-358,7
+358,7
@@
class XMPValidate {
$val, $m )
) {
$coord = intval( $m[1] );
$val, $m )
) {
$coord = intval( $m[1] );
- $coord += floatval( $m[2] ) * (
1/60
);
+ $coord += floatval( $m[2] ) * (
1 / 60
);
if ( $m[3] === 'S' || $m[3] === 'W' ) {
$coord = -$coord;
}
if ( $m[3] === 'S' || $m[3] === 'W' ) {
$coord = -$coord;
}