Changeset 4209
- Timestamp:
- 09/22/06 19:35:37 (2 years ago)
- Files:
-
- trunk/wp-includes/js/autosave.js.php (modified) (1 diff)
- trunk/wp-includes/js/tinymce/tiny_mce_gzip.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-includes/js/autosave.js.php
r4206 r4209 73 73 function autosave() { 74 74 var form = $('post'); 75 var rich = tinyMCE.getInstanceById('content') ? true : false;75 var rich = ((typeof tinyMCE != "undefined") && tinyMCE.getInstanceById('content')) ? true : false; 76 76 77 77 autosaveAjax = new sack(); trunk/wp-includes/js/tinymce/tiny_mce_gzip.php
r3938 r4209 36 36 37 37 // Fall back on en.js 38 if ( empty($text) ) 39 $text = file_get_contents(realpath(sprintf($path, 'en'))); 38 $file = realpath(sprintf($path, 'en')); 39 if ( empty($text) && file_exists($file) ) 40 $text = file_get_contents($file); 40 41 41 42 // Send lang file through gettext
