From bc335d7e0ae121a5bac31c8f5b256a6301bf14dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 10 May 2008 11:21:16 +0000 Subject: [PATCH] * Use addScriptFile --- includes/ImagePage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 1582359cb0..fa063dbcfd 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -99,8 +99,8 @@ class ImagePage extends Article { $collapse = htmlspecialchars( wfEscapeJsString( wfMsg( 'metadata-collapse' ) ) ); $wgOut->addHTML( Xml::element( 'h2', array( 'id' => 'metadata' ), wfMsg( 'metadata' ) ). "\n" ); $wgOut->addWikiText( $this->makeMetadataTable( $formattedMetadata ) ); + $wgOut->addScriptFile( 'metadata.js' ); $wgOut->addHTML( - "\n" . "\n" ); } } -- 2.20.1