A bunch of small changes from scrutinizer-ci; some tidying, some actual bug fixes
This commit is contained in:
@ -62,6 +62,7 @@ class BulkAddCSV 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;
|
||||
@ -82,8 +83,6 @@ class BulkAddCSV extends Extension {
|
||||
}
|
||||
|
||||
private function add_csv(/*string*/ $csvfile) {
|
||||
global $page;
|
||||
|
||||
if(!file_exists($csvfile)) {
|
||||
$this->theme->add_status("Error", "$csvfile not found");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user