Skip to content

Commit 1580e17

Browse files
Miyuutsushish
authored andcommitted
Update main.php for ext bulk_add_csv
I honestly have no idea what I was doing with this one. Changes courtesy of ChatGPT. They appear to work whereas before I was receiving an error. ChatGPT thought it was cut-and-dry and that this still follows the goals of alpha.
1 parent d822034 commit 1580e17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/bulk_add_csv/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function add_csv(Path $csvfile): void
102102
$list .= "<br>".html_escape("$shortpath (".implode(", ", $tags).")... ");
103103
if (file_exists($csvdata[0]) && is_file($csvdata[0])) {
104104
try {
105-
$this->add_image($fullpath, $shortpath, $tags, $source, $rating, $thumbfile);
105+
$this->add_image(new Path($fullpath), $shortpath, $tags, $source, $rating, new Path($thumbfile));
106106
$list .= "ok\n";
107107
} catch (\Exception $ex) {
108108
$list .= "failed:<br>". $ex->getMessage();

0 commit comments

Comments
 (0)