X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/6bb6cfda2f5cbc5c7c9cc25cd228970ce2b582cd..8446aee16b869be5235e55068ffeb76b163dac79:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 6d7cb34..97733d5 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -446,11 +446,11 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) { echo '
'; if (!empty ($name)) - echo $name . ' '; + echo t('Filename') . ": $name "; if (!empty ($file_hash)) - echo $file_hash . ' '; + echo t('file') . ": $file_hash "; if (!empty ($link_hash)) - echo $link_hash . ' '; + echo t('link') . ": $link_hash "; if (empty ($name) && empty ($file_hash) && empty ($link_hash)) echo t('List all files'); echo ''; @@ -489,11 +489,11 @@ jirafeau_admin_list ($name, $file_hash, $link_hash) continue; /* Filter. */ - if (!empty ($name) && $name != $l['file_name']) + if (!empty ($name) && !preg_match ("/$name/i", $l['file_name'])) continue; if (!empty ($file_hash) && $file_hash != $l['md5']) continue; - if (!empty ($link_hash) && $link_hash != $link) + if (!empty ($link_hash) && $link_hash != $node) continue; /* Print link informations. */ echo '';