Changeset 15316 for trunk/include
- Timestamp:
- May 26, 2012, 9:48:28 AM (12 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/config_default.inc.php
r15299 r15316 226 226 // category and element description. 227 227 $conf['allow_html_descriptions'] = true; 228 229 // prefix_thumbnail : string before filename. Thumbnail's prefix must only230 // contain characters among : a to z (case insensitive), "-" or "_".231 $conf['prefix_thumbnail'] = 'TN-';232 233 // dir_thumbnail : directory where thumbnail reside.234 $conf['dir_thumbnail'] = 'thumbnail';235 228 236 229 // users_page: how many users to display in screen -
trunk/include/functions.inc.php
r13488 r15316 199 199 } 200 200 return true; 201 }202 203 /**204 * returns thumbnail directory name of input diretoty name205 * make thumbnail directory is necessary206 * set error messages on array messages207 *208 * @param:209 * string $dirname210 * arrayy $errors211 * @return bool false on error else string directory name212 */213 function mkget_thumbnail_dir($dirname, &$errors)214 {215 global $conf;216 217 $tndir = $dirname.'/'.$conf['dir_thumbnail'];218 if (! mkgetdir($tndir, MKGETDIR_NONE) )219 {220 array_push($errors,221 '['.$dirname.'] : '.l10n('no write access'));222 return false;223 }224 return $tndir;225 201 } 226 202
Note: See TracChangeset
for help on using the changeset viewer.