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] 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() );