filemask for img corrected, sql utility

This commit is contained in:
Ulf Gebhardt 2014-03-21 14:43:06 +01:00
parent 3c55f8e59a
commit 1c1c04dbad
2 changed files with 14 additions and 1 deletions

View File

@ -0,0 +1,13 @@
-- delete old entries of group
DELETE FROM system.api where "group" = 101;
-- get data from group 0 and write it in your group
INSERT INTO system.api ( "ID", "group","type","parentID","parentValue","name","verify" )
SELECT "ID",
'101' as "group", -- target group
"type",
"parentID",
"parentValue",
"name",
"verify"
FROM system.api
WHERE "group" = 0; -- pattern group

View File

@ -56,7 +56,7 @@ class img {
private static function getFolder($folder, $mask) {
$files = array();
foreach (glob($folder . $mask) as $file) {
foreach (glob($folder . $mask,GLOB_BRACE) as $file) {
$files[] = basename($file);
}
return $files;