Changeset 12758 for extensions
- Timestamp:
- Dec 17, 2011, 7:14:43 PM (13 years ago)
- Location:
- extensions/GThumb
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GThumb/admin.php
r12733 r12758 70 70 } 71 71 72 if ($params['height'] != $conf['GThumb']['height']) 73 { 74 gtdeltree(GTHUMB_CACHE_DIR); 75 } 76 elseif ($params['margin'] != $conf['GThumb']['margin']) 77 { 78 gtdeltree(GTHUMB_CACHE_DIR.'/'.($conf['GThumb']['height'] * 2 + $conf['GThumb']['margin'])); 79 } 80 72 81 if (empty($page['errors'])) 73 82 { -
extensions/GThumb/main.inc.php
r12751 r12758 39 39 $user['nb_image_page'] = $conf['GThumb']['nb_image_page']; 40 40 $page['nb_image_page'] = $conf['GThumb']['nb_image_page']; 41 42 if (is_dir(GTHUMB_CACHE_DIR) and !is_dir(GTHUMB_CACHE_DIR.'/'.$conf['GThumb']['height']))43 {44 // We clean cache dir because configuration has changed45 include_once(GTHUMB_PATH.'functions.inc.php');46 gtdeltree(GTHUMB_CACHE_DIR);47 }48 41 } 49 42 -
extensions/GThumb/maintain.inc.php
r12705 r12758 16 16 { 17 17 include_once(dirname(__FILE__).'/functions.inc.php'); 18 gtdeltree( GTHUMB_CACHE_DIR);18 gtdeltree(PHPWG_ROOT_PATH.PWG_LOCAL_DIR.'GThumb'); 19 19 20 20 $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="GThumb" LIMIT 1;';
Note: See TracChangeset
for help on using the changeset viewer.