From 71c71b7ed7334a7045c5b7ce238b64ccafdbe6f2 Mon Sep 17 00:00:00 2001 From: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:13:37 -0400 Subject: [PATCH 1/2] UTCT-86: Change hook to make compatible with 404 plugin. Signed-off-by: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> --- user/plugins/seans-qrcode/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/plugins/seans-qrcode/plugin.php b/user/plugins/seans-qrcode/plugin.php index 383ca07..7914e7b 100644 --- a/user/plugins/seans-qrcode/plugin.php +++ b/user/plugins/seans-qrcode/plugin.php @@ -42,7 +42,7 @@ class LogoOptions extends QROptions{ } // Kick in if the loader does not recognize a valid pattern -yourls_add_action( 'loader_failed', 'sean_yourls_qrcode' ); +yourls_add_action( 'redirect_keyword_not_found', 'sean_yourls_qrcode' ); function sean_yourls_qrcode( $request ) { // Get authorized charset in keywords and make a regexp pattern $pattern = yourls_make_regexp_pattern( yourls_get_shorturl_charset() ); From 8be3b3f8d12252f41edaaf52ad7c5bdd27a483e9 Mon Sep 17 00:00:00 2001 From: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:26:55 -0400 Subject: [PATCH 2/2] UTCT-86: Make the 404 wordmark path work with all bad paths. Signed-off-by: Chris Gilligan <49878588+UTCGilligan@users.noreply.github.com> --- 404.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/404.php b/404.php index 3a3a785..cab4f39 100644 --- a/404.php +++ b/404.php @@ -7,7 +7,7 @@
- UTC Logo + UTC Logo

Sorry,