From f2226dbebf01b20d0196a3b2a8cdb49b1f50bb3e Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Wed, 28 Sep 2022 20:38:16 +0800 Subject: [PATCH] feat: quick create solution blog --- web/app/controllers/problem_solutions.php | 5 +++++ web/app/controllers/subdomain/blog/blog_write.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/web/app/controllers/problem_solutions.php b/web/app/controllers/problem_solutions.php index 8a6fe69..3d8c640 100644 --- a/web/app/controllers/problem_solutions.php +++ b/web/app/controllers/problem_solutions.php @@ -267,6 +267,11 @@ EOD;
printHTML(); ?>
+ diff --git a/web/app/controllers/subdomain/blog/blog_write.php b/web/app/controllers/subdomain/blog/blog_write.php index f1b2239..66ea093 100644 --- a/web/app/controllers/subdomain/blog/blog_write.php +++ b/web/app/controllers/subdomain/blog/blog_write.php @@ -26,11 +26,11 @@ ); } else { $blog_editor->cur_data = array( - 'title' => '新博客', + 'title' => $_GET['title'] ?: '新博客', 'content_md' => '', 'content' => '', 'tags' => array(), - 'is_hidden' => true + 'is_hidden' => isset($_GET['is_hidden']) ? $_GET['is_hidden'] : true, ); } if ($blog) {