comparison mgtool.php @ 315:8a69e693e08c

Add (unused) helper function mgConvertAttribute().
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Apr 2020 19:05:49 +0300
parents 020d155a179d
children af5ce7bf7eeb
comparison
equal deleted inserted replaced
314:020d155a179d 315:8a69e693e08c
431 431
432 $xmp = mgParseXMPData($buffer); 432 $xmp = mgParseXMPData($buffer);
433 433
434 return TRUE; 434 return TRUE;
435 } 435 }
436 }
437
438
439 function mgConvertAttribute(&$dst, &$src, $dstName, $srcName)
440 {
441 if (isset($src[$srcName]))
442 $dst[$dstName] = (string) $src[$srcName];
436 } 443 }
437 444
438 445
439 function mgParseXMPData($xmpStr) 446 function mgParseXMPData($xmpStr)
440 { 447 {