summaryrefslogtreecommitdiff
path: root/code/admin/utils.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <lpouzenc@gmail.com>2013-11-02 20:32:28 +0100
committerLudovic Pouzenc <lpouzenc@gmail.com>2013-11-02 20:32:28 +0100
commitef40bdc69152658ea6660787f4c1e4283f7fed5f (patch)
tree78cbd51aae59410ddc1d1f0117b23e8d5bd960a7 /code/admin/utils.php
parentacbb8dff1439b0d05709a93fff356e7f6b829da6 (diff)
downloadeditablesite-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.php4
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;
}
}