Bug 5965 : Follow up patch, cleaned for style
authorChris Cormack <chrisc@catalyst.net.nz>
Wed, 30 Mar 2011 10:24:20 +0000 (12:24 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 1 Apr 2011 00:21:16 +0000 (13:21 +1300)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
opac/opac-detail.pl

index 73941e0..50bece5 100755 (executable)
@@ -41,6 +41,7 @@ use C4::Members;
 use C4::VirtualShelves;
 use C4::XSLT;
 use C4::ShelfBrowser;
+use C4::Charset;
 
 BEGIN {
        if (C4::Context->preference('BakerTaylorEnabled')) {
@@ -71,8 +72,9 @@ if ( ! $record ) {
     exit;
 }
 $template->param( biblionumber => $biblionumber );
-       use C4::Charset;
-       SetUTF8Flag($record);
+
+SetUTF8Flag($record);
+
 # XSLT processing of some stuff
 if (C4::Context->preference("OPACXSLTDetailsDisplay") ) {
     $template->param( 'XSLTBloc' => XSLTParse4Display($biblionumber, $record, 'Detail', 'opac') );