forked from Cavemanon/cavepaintings
A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes
This commit is contained in:
@ -53,6 +53,7 @@ class BulkAdd extends Extension {
|
||||
if(!array_key_exists('extension', $pathinfo)) {
|
||||
throw new UploadException("File has no extension");
|
||||
}
|
||||
$metadata = array();
|
||||
$metadata['filename'] = $pathinfo['basename'];
|
||||
$metadata['extension'] = $pathinfo['extension'];
|
||||
$metadata['tags'] = $tags;
|
||||
@ -65,8 +66,6 @@ class BulkAdd extends Extension {
|
||||
}
|
||||
|
||||
private function add_dir(/*string*/ $base, $subdir="") {
|
||||
global $page;
|
||||
|
||||
if(!is_dir($base)) {
|
||||
$this->theme->add_status("Error", "$base is not a directory");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user