Index: trunk/extensions/Translate/utils/TranslateYaml.php |
— | — | @@ -4,13 +4,13 @@ |
5 | 5 | public static function loadString( $text ) { |
6 | 6 | global $wgTranslateYamlLibrary; |
7 | 7 | switch ($wgTranslateYamlLibrary) { |
8 | | - case 'spyc': |
9 | | - require_once( dirname(__FILE__).'/../spyc/spyc.php' ); |
10 | | - return spyc_load( $text ); |
11 | | - case 'syck': |
12 | | - return self::syckLoad( $text ); |
13 | | - default: |
14 | | - throw new MWException( "Unknown Yaml library" ); |
| 8 | + case 'spyc': |
| 9 | + require_once( dirname(__FILE__).'/../spyc/spyc.php' ); |
| 10 | + return spyc_load( $text ); |
| 11 | + case 'syck': |
| 12 | + return self::syckLoad( $text ); |
| 13 | + default: |
| 14 | + throw new MWException( "Unknown Yaml library" ); |
15 | 15 | } |
16 | 16 | } |
17 | 17 | |
— | — | @@ -22,13 +22,13 @@ |
23 | 23 | public static function dump( $text ) { |
24 | 24 | global $wgTranslateYamlLibrary; |
25 | 25 | switch ($wgTranslateYamlLibrary) { |
26 | | - case 'spyc': |
27 | | - require_once( dirname(__FILE__).'/../spyc/spyc.php' ); |
28 | | - return Spyc::YAMLDump( $text ); |
29 | | - case 'syck': |
30 | | - return self::syckDump( $text ); |
31 | | - default: |
32 | | - throw new MWException( "Unknown Yaml library" ); |
| 26 | + case 'spyc': |
| 27 | + require_once( dirname(__FILE__).'/../spyc/spyc.php' ); |
| 28 | + return Spyc::YAMLDump( $text ); |
| 29 | + case 'syck': |
| 30 | + return self::syckDump( $text ); |
| 31 | + default: |
| 32 | + throw new MWException( "Unknown Yaml library" ); |
33 | 33 | } |
34 | 34 | } |
35 | 35 | |
— | — | @@ -105,4 +105,4 @@ |
106 | 106 | } |
107 | 107 | |
108 | 108 | // BC |
109 | | -class TranslateSpyc extends TranslateYaml {} |
\ No newline at end of file |
| 109 | +class TranslateSpyc extends TranslateYaml {} |