diff --git a/ext/upload/main.php b/ext/upload/main.php
index ab693109..a7715752 100644
--- a/ext/upload/main.php
+++ b/ext/upload/main.php
@@ -194,7 +194,7 @@ class Upload extends Extension
$this->theme->display_permission_denied();
} else {
if ($this->is_full) {
- throw new UploadException("Can not replace Image: disk nearly full");
+ throw new UploadException("Can not replace Post: disk nearly full");
}
// Try to get the image ID
@@ -203,12 +203,12 @@ class Upload extends Extension
} elseif (isset($_POST['image_id'])) {
$image_id = int_escape($_POST['image_id']);
} else {
- throw new UploadException("Can not replace Image: No valid Image ID given.");
+ throw new UploadException("Can not replace Post: No valid Post ID given.");
}
$image_old = Image::by_id($image_id);
if (is_null($image_old)) {
- throw new UploadException("Can not replace Image: No image with ID $image_id");
+ throw new UploadException("Can not replace Post: No post with ID $image_id");
}
$source = $_POST['source'] ?? null;
@@ -370,7 +370,7 @@ class Upload extends Extension
if ($event->image_id == -1) {
throw new UploadException("MIME type not supported: " . $metadata['mime']);
}
- $page->add_http_header("X-Shimmie-Image-ID: " . $event->image_id);
+ $page->add_http_header("X-Shimmie-Post-ID: " . $event->image_id);
} catch (UploadException $ex) {
$this->theme->display_upload_error(
$page,
diff --git a/ext/upload/theme.php b/ext/upload/theme.php
index 8f476bd1..b2c9fb33 100644
--- a/ext/upload/theme.php
+++ b/ext/upload/theme.php
@@ -56,7 +56,7 @@ class UploadTheme extends Themelet
";
@@ -122,7 +122,7 @@ class UploadTheme extends Themelet
}
)();';
$html .= 'Upload to '.$title.'';
- $html .= ' (Drag & drop onto your bookmarks toolbar, then click when looking at an image)';
+ $html .= ' (Drag & drop onto your bookmarks toolbar, then click when looking at a post)';
// Bookmarklet checks if shimmie supports ext. If not, won't upload to site/shows alert saying not supported.
$supported_ext = join(" ", DataHandlerExtension::get_all_supported_exts());
@@ -135,7 +135,7 @@ class UploadTheme extends Themelet
var maxsize="'.$max_kb.'";
var CA=0;
void(document.body.appendChild(document.createElement("script")).src="'.make_http(get_base_href())."/ext/upload/bookmarklet.js".'")
- ">'. $title . ' (Click when looking at an image page. Works on sites running Shimmie / Danbooru / Gelbooru. (This also grabs the tags / rating / source!))';
+ ">'. $title . ' (Click when looking at a post page. Works on sites running Shimmie / Danbooru / Gelbooru. (This also grabs the tags / rating / source!))';
return $html;
}
@@ -171,7 +171,7 @@ class UploadTheme extends Themelet
$thumbnail = $this->build_thumb_html($image);
$html = "
-
Replacing Image ID ".$image_id." Please note: You will have to refresh the image page, or empty your browser cache.
"
+
Replacing Post ID ".$image_id." Please note: You will have to refresh the post page, or empty your browser cache.