summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-06-10 19:04:57 +0100
committerlsces <lester@lsces.co.uk>2012-06-10 19:04:57 +0100
commit41862ed75177d66a7e7a736a1d80544bd94348f4 (patch)
tree3c180b4fd8ce8708ba9d3681bd966e26919adeb7
parentf3ce03a71d3dd1c7dcbe474197fb1588949735db (diff)
downloadckeditor-41862ed75177d66a7e7a736a1d80544bd94348f4.tar.gz
ckeditor-41862ed75177d66a7e7a736a1d80544bd94348f4.tar.bz2
ckeditor-41862ed75177d66a7e7a736a1d80544bd94348f4.zip
Switch to compressed version of ckeditor when IS_LIVE enabled
-rw-r--r--bit_setup_inc.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index d2faf31..237f999 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -12,7 +12,11 @@ $gBitSystem->registerPackage( $registerHash );
$gBitSmarty->plugins_dir[] = $registerHash['package_path']."smarty";
if( $gBitSystem->isPackageActive( 'ckeditor' ) && $gBitUser->hasPermission( 'p_liberty_enter_html' ) ){
- $gBitThemes->loadJavascript( CKEDITOR_PKG_PATH.'ckeditor_source.js', FALSE, 600, FALSE );
+ if( defined( 'IS_LIVE' ) && IS_LIVE ) {
+ $gBitThemes->loadJavascript( CKEDITOR_PKG_PATH.'ckeditor.js', FALSE, 600, FALSE );
+ } else {
+ $gBitThemes->loadJavascript( CKEDITOR_PKG_PATH.'ckeditor_source.js', FALSE, 600, FALSE );
+ }
}
?>