Changeset 847 in ExiteCMS for trunk/includes/font2image.php
- Timestamp:
- 09/28/07 21:08:59 (5 years ago)
- File:
-
- 1 edited
-
trunk/includes/font2image.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/font2image.php
r834 r847 29 29 $f2i_array['cache_folder'] = ""; // Directory to store the cached images in. 30 30 // If not defined or not valid, cache_images will be set to false. 31 $f2i_array['cache_prefix'] = false; // If defined, this will be prepended to the filename of the cached file 31 32 $f2i_array['cache_hash'] = false; // Boolean. If false, the text will be used as filename, otherwise a hash is calculated 32 33 … … 92 93 if (!isset($font2image['cache_folder'])) $font2image['cache_images'] = false; 93 94 if ($font2image['cache_folder'] !="" && !is_dir($font2image['cache_folder'])) fatal_error('Cache folder does not exist.'); 95 if (!isset($font2image['cache_prefix']) || $font2image['cache_prefix'] == false) $font2image['cache_prefix'] = ""; 94 96 if (!isset($font2image['cache_hash'])) $font2image['cache_hash'] = false; 95 97 … … 129 131 $hash = str_replace(' ', '_', $font2image['font_text']); 130 132 } 131 $cache_filename = $font2image['cache_folder'] . '/' . $ hash . '.png' ;133 $cache_filename = $font2image['cache_folder'] . '/' . $font2image['cache_prefix'] . $hash . '.png' ; 132 134 if($font2image['cache_images'] && is_readable($cache_filename)) { 133 135 // convert the file to a resource
Note: See TracChangeset
for help on using the changeset viewer.
