Index: trunk/extensions/FCKeditor/FCKeditor.php |
— | — | @@ -88,8 +88,15 @@ |
89 | 89 | $wgExtensionMessagesFiles['FCKeditor'] = $dir . 'FCKeditor.i18n.php'; |
90 | 90 | |
91 | 91 | // Initialize FCKeditor and the MediaWiki extension |
92 | | -$fckeditor = new FCKeditor('fake'); |
93 | | -$wgFCKEditorIsCompatible = $fckeditor->IsCompatible(); |
| 92 | +// @fixme something like this should be delayed until it's actually time |
| 93 | +// to work with the editor or something. |
| 94 | +if (php_sapi_name() == 'cli') { |
| 95 | + // Command line |
| 96 | + $wgFCKEditorIsCompatible = false; |
| 97 | +} else { |
| 98 | + $fckeditor = new FCKeditor('fake'); |
| 99 | + $wgFCKEditorIsCompatible = $fckeditor->IsCompatible(); |
| 100 | +} |
94 | 101 | |
95 | 102 | $oFCKeditorExtension = new FCKeditor_MediaWiki(); |
96 | 103 | |