aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/batch_manager_global.php4
-rw-r--r--admin/include/functions.php3
-rw-r--r--admin/maintenance.php3
3 files changed, 7 insertions, 3 deletions
diff --git a/admin/batch_manager_global.php b/admin/batch_manager_global.php
index 95cddf520..ed27c4817 100644
--- a/admin/batch_manager_global.php
+++ b/admin/batch_manager_global.php
@@ -677,10 +677,12 @@ foreach(ImageStdParams::get_defined_type_map() as $params)
{
$del_deriv_map[$params->type] = l10n($params->type);
}
+$gen_deriv_map = $del_deriv_map;
+$del_deriv_map[IMG_CUSTOM] = l10n(IMG_CUSTOM);
$template->assign(
array(
'del_derivatives_types' => $del_deriv_map,
- 'generate_derivatives_types' => $del_deriv_map,
+ 'generate_derivatives_types' => $gen_deriv_map,
)
);
diff --git a/admin/include/functions.php b/admin/include/functions.php
index 3afb705d0..9218ce3e3 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -170,6 +170,7 @@ DELETE FROM '.USER_CACHE_CATEGORIES_TABLE.'
// @return image ids where files are deleted successfully
function delete_element_files($ids)
{
+ global $conf;
if (count($ids) == 0)
{
return 0;
@@ -2277,7 +2278,7 @@ function clear_derivative_cache($types='all')
}
$pattern.='(_[a-zA-Z0-9]+)*\.[a-zA-Z0-9]{3,4}$#';
- if ($contents = opendir(PHPWG_ROOT_PATH.PWG_DERIVATIVE_DIR))
+ if ($contents = @opendir(PHPWG_ROOT_PATH.PWG_DERIVATIVE_DIR))
{
while (($node = readdir($contents)) !== false)
{
diff --git a/admin/maintenance.php b/admin/maintenance.php
index 78c4d0a7d..28a20dd4d 100644
--- a/admin/maintenance.php
+++ b/admin/maintenance.php
@@ -159,11 +159,12 @@ $template->set_filenames(array('maintenance'=>'maintenance.tpl'));
$url_format = get_root_url().'admin.php?page=maintenance&action=%s&pwg_token='.get_pwg_token();
-$purge_urls[l10n('all')] = sprintf($url_format, 'derivatives').'&type=all';
+$purge_urls[l10n('All')] = sprintf($url_format, 'derivatives').'&type=all';
foreach(ImageStdParams::get_defined_type_map() as $params)
{
$purge_urls[ l10n($params->type) ] = sprintf($url_format, 'derivatives').'&type='.$params->type;
}
+$purge_urls[ l10n(IMG_CUSTOM) ] = sprintf($url_format, 'derivatives').'&type='.IMG_CUSTOM;
$template->assign(
array(