From ef40bdc69152658ea6660787f4c1e4283f7fed5f Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 2 Nov 2013 20:32:28 +0100 Subject: CSS fix avec des colonnes qui font réellement 50% + changement ergo pour ajout/suppr page/media MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/admin/utils.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/admin/utils.php') diff --git a/code/admin/utils.php b/code/admin/utils.php index 9612535..4db2d2d 100644 --- a/code/admin/utils.php +++ b/code/admin/utils.php @@ -77,8 +77,8 @@ function is_ress($kind, $path) { switch ($kind) { - case 'page': return is_file($path.'/props.ini'); - case 'media': return substr($path, -4)=='.jpg' && is_file($path); + case 'page': return ( is_dir($path) && is_file($path.'/props.ini') ); + case 'media': return ( substr($path, -4)=='.jpg' && is_file($path) ); default : return FALSE; } } -- cgit v1.2.3