# HG changeset patch # User Matti Hamalainen # Date 1586189149 -10800 # Node ID 8a69e693e08c4831ae3afd7c3814a20e3ec2d568 # Parent 020d155a179df17ee69114e727c4c2f70cf002ae Add (unused) helper function mgConvertAttribute(). diff -r 020d155a179d -r 8a69e693e08c mgtool.php --- a/mgtool.php Mon Apr 06 19:05:13 2020 +0300 +++ b/mgtool.php Mon Apr 06 19:05:49 2020 +0300 @@ -436,6 +436,13 @@ } +function mgConvertAttribute(&$dst, &$src, $dstName, $srcName) +{ + if (isset($src[$srcName])) + $dst[$dstName] = (string) $src[$srcName]; +} + + function mgParseXMPData($xmpStr) { // SimpleXML apparently can't handle namespaces,