From 2734e7319e1af1db859671ccc93e3a84df3f5603 Mon Sep 17 00:00:00 2001 From: csizmazia Date: Wed, 6 Nov 2013 10:44:00 +0100 Subject: [PATCH] fixed hook name to make it work for YOURLS 1.6 --- qs_forward/plugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qs_forward/plugin.php b/qs_forward/plugin.php index 12ed770..d69a5fe 100644 --- a/qs_forward/plugin.php +++ b/qs_forward/plugin.php @@ -9,10 +9,10 @@ */ // Hook our custom function into the 'pre_redirect' event -yourls_add_filter('redirect', 'qs_forward_redirect' ); +yourls_add_filter('redirect_location', 'qs_forward_redirect' ); // Our custom function that will be triggered when the event occurs -function qs_forward_redirect($url, $code) { +function qs_forward_redirect($url) { $parsed_url = parse_url($url); parse_str($_SERVER['QUERY_STRING'], $query); @@ -31,4 +31,4 @@ function qs_forward_redirect($url, $code) { return $new_url; } -?> \ No newline at end of file +?>