Changeset 855
- Timestamp:
- 01/23/07 04:47:18 (2 years ago)
- Files:
-
- devel/_tinymce/jscripts/tiny_mce/tiny_mce_gzip.php (modified) (2 diffs)
- devel/units/tinymce/tinymce_js.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/_tinymce/jscripts/tiny_mce/tiny_mce_gzip.php
r848 r855 1 1 <?php 2 // NB: THIS FILE HAS CHANGED FROM UPSTREAM 3 4 require_once(dirname(dirname(dirname(dirname(__FILE__))))."/config.php"); 5 2 6 /** 3 7 * $Id: tiny_mce_gzip.php 158 2006-12-21 14:32:19Z spocke $ … … 21 25 $isJS = getParam("js", "") == "true"; 22 26 $compress = getParam("compress", "true") == "true"; 23 $suffix = getParam("suffix", " _src") == "_src" ? "_src" : "";24 $cachePath = realpath( "."); // Cache path, this is where the .gz files will be stored27 $suffix = getParam("suffix", "") == "_src" ? "_src" : ""; // CHANGED FROM UPSTREAM 28 $cachePath = realpath($CFG->dataroot . "cache"); // Cache path, this is where the .gz files will be stored // CHANGED FROM UPSTREAM 25 29 $expiresOffset = 3600 * 24 * 10; // Cache for 10 days in browser cache 26 30 $content = ""; devel/units/tinymce/tinymce_js.php
r848 r855 21 21 $lang = substr($USER->locale, 0, 2); 22 22 } else { 23 $lang = $USER->locale; 23 $lang = $USER->locale; 24 24 } 25 25 } 26 26 27 // Lo ose the trailing slash27 // Lose the trailing slash 28 28 $url = substr($CFG->wwwroot, 0, -1); 29 29 30 30 global $metatags; 31 31 32 // gzip thingy should only assemble plugins we're actually using 33 $plugins = 'spellchecker,emotions,contextmenu,preview,style,searchreplace,autosave'; 34 //plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,spellchecker', 35 32 36 $metatags .= <<< END 33 37 <script language="javascript" type="text/javascript" src="$url/_tinymce/jscripts/tiny_mce/tiny_mce_gzip.js"></script> … … 35 39 <script language="javascript" type="text/javascript"> 36 40 tinyMCE_GZ.init({ 37 plugins : ' style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,spellchecker',38 themes : ' simple,advanced',39 languages : 'en ',41 plugins : '$plugins', 42 themes : 'advanced', 43 languages : 'en,$lang', 40 44 disk_cache : true, 41 45 debug : false … … 47 51 language : "$lang", 48 52 mode : "exact", 49 plugins : " spellchecker,emotions,contextmenu,preview,style,searchreplace,autosave",53 plugins : "$plugins", 50 54 convert_urls : false, 51 55 relative_urls : false,
