From 77ea8617d7b297dafe8a044b1a35e4f34bed5e08 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:12:07 -0500 Subject: [PATCH] Image to Post - Admin extension --- ext/admin/info.php | 6 +++--- ext/admin/test.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/admin/info.php b/ext/admin/info.php index 4a396aa9..55cea22d 100644 --- a/ext/admin/info.php +++ b/ext/admin/info.php @@ -15,9 +15,9 @@ class AdminPageInfo extends ExtensionInfo

Lowercase all tags:
Set all tags to lowercase for consistency

Recount tag use: -
If the counts of images per tag get messed up somehow, this will reset them, and remove any unused tags +
If the counts of posts per tag get messed up somehow, this will reset them, and remove any unused tags

Database dump:
Download the contents of the database in plain text format, useful for backups. -

Image dump: -
Download all the images as a .zip file (Requires ZipArchive)"; +

Post dump: +
Download all the posts as a .zip file (Requires ZipArchive)"; } diff --git a/ext/admin/test.php b/ext/admin/test.php index 0e4852bf..e0f5b919 100644 --- a/ext/admin/test.php +++ b/ext/admin/test.php @@ -28,14 +28,14 @@ class AdminPageTest extends ShimmiePHPUnitTestCase // Validate problem $page = $this->get_page("post/view/$image_id_1"); - $this->assertEquals("Image $image_id_1: TeStCase$ts", $page->title); + $this->assertEquals("Post $image_id_1: TeStCase$ts", $page->title); // Fix send_event(new AdminActionEvent('lowercase_all_tags')); // Validate fix $this->get_page("post/view/$image_id_1"); - $this->assert_title("Image $image_id_1: testcase$ts"); + $this->assert_title("Post $image_id_1: testcase$ts"); // Change $_POST["tag"] = "TestCase$ts"; @@ -43,7 +43,7 @@ class AdminPageTest extends ShimmiePHPUnitTestCase // Validate change $this->get_page("post/view/$image_id_1"); - $this->assert_title("Image $image_id_1: TestCase$ts"); + $this->assert_title("Post $image_id_1: TestCase$ts"); } # FIXME: make sure the admin tools actually work