* Title, person. Not sure if this is best
* approach since we no longer have the two fields
* separate. each byline title entry corresponds to a
- * specific byline. */
+ * specific byline. */
$bylines = self::convIPTC( $val, $c );
if ( isset( $parsed['2#085'] ) ) {
*/
private static function convIPTCHelper( $data, $charset ) {
if ( $charset ) {
- MediaWiki\suppressWarnings();
+ Wikimedia\suppressWarnings();
$data = iconv( $charset, "UTF-8//IGNORE", $data );
- MediaWiki\restoreWarnings();
+ Wikimedia\restoreWarnings();
if ( $data === false ) {
$data = "";
wfDebugLog( 'iptc', __METHOD__ . " Error converting iptc data charset $charset to utf-8" );