--- a/lib/tinymce/jscripts/tiny_mce/plugins/jbimages/ci/application/controllers/editor.php +++ a/lib/tinymce/jscripts/tiny_mce/plugins/jbimages/ci/application/controllers/editor.php @@ -47,11 +47,11 @@ public function __construct() private function _lang_set($lang) { // We do say hello to any language set as lang_id in **_dlg.js - /*$langs = array('russian','english'); + $langs = array('russian','english'); if (!in_array($lang, $langs)) { $lang = 'english'; - }*/ + } $this->config->set_item('language', $lang); $this->lang->load('jbstrings', $lang); @@ -91,6 +91,7 @@ public function upload($lang='english') // Check that the image directory isn't full $maxUploadDirSize = $this->config->item('max_upload_dir_size', 'uploader_settings') * 1024; + $uploadDirSizeExceeded = false; if ($maxUploadDirSize != 0) { $this->load->helper('file'); @@ -104,7 +105,6 @@ public function upload($lang='english') // Add the size of the newly uploaded file $totalSize += $_FILES['userfile']['size']; - $uploadDirSizeExceeded = false; if($totalSize > $maxUploadDirSize) { $uploadDirSizeExceeded = true;