Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php |
— | — | @@ -99,7 +99,10 @@ |
100 | 100 | if ( $enclose === GESHI_HEADER_NONE ) { |
101 | 101 | $attribs = self::addAttribute( $attribs, 'class', 'mw-geshi ' . $lang . ' source-' . $lang ); |
102 | 102 | } else { |
103 | | - $attribs = self::addAttribute( $attribs, 'dir', 'ltr' ); |
| 103 | + if ( !isset( $attribs['dir'] ) ) { |
| 104 | + $attribs = self::addAttribute( $attribs, 'dir', 'ltr' ); |
| 105 | + } |
| 106 | + |
104 | 107 | $attribs = self::addAttribute( $attribs, 'class', 'mw-geshi' ); |
105 | 108 | $attribs = self::addAttribute( $attribs, 'style', 'text-align: left;' ); |
106 | 109 | } |