X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fmedia%2FXMP.php;h=0d341aaa1da4ef06c6949a668cc49c82087b9ec6;hb=25bdfe5dc8d2a106278b65e8e5785f51b7034317;hp=154c85dbc52f387d7a4cc0af49154d69d134960b;hpb=acf291598a5e03e032321f7d1208b1ebb6d86c3e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/media/XMP.php b/includes/media/XMP.php index 154c85dbc5..0d341aaa1d 100644 --- a/includes/media/XMP.php +++ b/includes/media/XMP.php @@ -173,7 +173,7 @@ class XMPReader { $data = $this->results; - wfRunHooks( 'XMPGetResults', array( &$data ) ); + Hooks::run( 'XMPGetResults', array( &$data ) ); if ( isset( $data['xmp-special']['AuthorsPosition'] ) && is_string( $data['xmp-special']['AuthorsPosition'] ) @@ -316,7 +316,7 @@ class XMPReader { $this->results = array(); // blank if error. return false; } - } catch ( MWException $e ) { + } catch ( Exception $e ) { wfDebugLog( 'XMP', 'XMP parse error: ' . $e ); $this->results = array(); @@ -1122,7 +1122,6 @@ class XMPReader { } } - // @codingStandardsIgnoreStart Long line that cannot be broken /** * Process attributes. * Simple values can be stored as either a tag or attribute @@ -1130,15 +1129,16 @@ class XMPReader { * Often the initial "" tag just has all the simple * properties as attributes. * + * @codingStandardsIgnoreStart Long line that cannot be broken * @par Example: * @code * * @endcode + * @codingStandardsIgnoreEnd * * @param array $attribs Array attribute=>value * @throws MWException */ - // @codingStandardsIgnoreEnd private function doAttribs( $attribs ) { // first check for rdf:parseType attribute, as that can change // how the attributes are interperted.