Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.php |
— | — | @@ -49,7 +49,7 @@ |
50 | 50 | ); |
51 | 51 | |
52 | 52 | $wgAutoloadClasses['SyntaxHighlight_GeSHi'] = dirname( __FILE__ ) . '/SyntaxHighlight_GeSHi.class.php'; |
53 | | -$wgHooks['ShowRawCssJs'][] = 'SyntaxHighlight_GeSHi::viewHook';//array( 'SyntaxHighlight_GeSHi', 'viewHook' ); |
| 53 | +$wgHooks['ShowRawCssJs'][] = 'SyntaxHighlight_GeSHi::viewHook'; |
54 | 54 | $wgExtensionFunctions[] = 'efSyntaxHighlight_GeSHiSetup'; |
55 | 55 | |
56 | 56 | /** |
Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php |
— | — | @@ -77,7 +77,7 @@ |
78 | 78 | * @param OutputPage $output |
79 | 79 | * @return bool |
80 | 80 | */ |
81 | | - public static function viewHook( &$text, $title, $output ) { |
| 81 | + public static function viewHook( $text, $title, $output ) { |
82 | 82 | // Determine the language |
83 | 83 | preg_match( '!\.(css|js)$!u', $title->getText(), $matches ); |
84 | 84 | $lang = $matches[1] == 'css' ? 'css' : 'javascript'; |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | if( !$geshi->error() ) { |
90 | 90 | // Done |
91 | 91 | $output->addHeadItem( "source-$lang", self::buildHeadItem( $geshi ) ); |
92 | | - $text = $out; |
| 92 | + $output->addHtml( "<div dir=\"ltr\">{$out}</div>" ); |
93 | 93 | return false; |
94 | 94 | } |
95 | 95 | } |