diff options
author | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-11-02 20:32:28 +0100 |
---|---|---|
committer | Ludovic Pouzenc <lpouzenc@gmail.com> | 2013-11-02 20:32:28 +0100 |
commit | ef40bdc69152658ea6660787f4c1e4283f7fed5f (patch) | |
tree | 78cbd51aae59410ddc1d1f0117b23e8d5bd960a7 /code/admin/utils.php | |
parent | acbb8dff1439b0d05709a93fff356e7f6b829da6 (diff) | |
download | editablesite-ef40bdc69152658ea6660787f4c1e4283f7fed5f.tar.gz editablesite-ef40bdc69152658ea6660787f4c1e4283f7fed5f.tar.bz2 editablesite-ef40bdc69152658ea6660787f4c1e4283f7fed5f.zip |
CSS fix avec des colonnes qui font réellement 50% + changement ergo pour ajout/suppr page/media
Diffstat (limited to 'code/admin/utils.php')
-rw-r--r-- | code/admin/utils.php | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |