Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 33a551c

Browse files
committed
fix 500 error on redirect
1 parent 05d806f commit 33a551c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Features
1616

1717
Requirements
1818
------------
19-
- YOURLS 1.7.3
19+
- YOURLS 1.7.3 +
2020
- Incompatable Plugins:
2121
- nicwaller's [`authmgr`](https://github.com/nicwaller/yourls-authmgr-plugin)
2222
- Ian Barber's [`Seperate Users`](https://github.com/ianbarber/Yourls-Separate-Users)

authMgrPlus/plugin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Auth Manager Plus
44
Plugin URI: https://github.com/joshp23/YOURLS-AuthMgrPlus
55
Description: Role Based Access Controlls with seperated user data for authenticated users
6-
Version: 2.1.0
6+
Version: 2.1.1
77
Author: Josh Panter, nicwaller, Ian Barber <[email protected]>
88
Author URI: https://unfettered.net
99
*/
@@ -352,11 +352,11 @@ function amp_get_db_stats( $return, $where ) {
352352

353353
// Fine tune track-me-not
354354
yourls_add_action('redirect_shorturl', 'amp_tracking');
355-
function amp_tracking( $u, $k ) {
355+
function amp_tracking( $u, $k = false ) {
356356
if( amp_is_valid_user() && ( amp_keyword_owner($k) || amp_have_capability( ampCap::Traceless ) ) ) {
357357
// No logging
358-
yourls_add_filter( 'shunt_update_clicks', function( $u, $k ) { return true; } );
359-
yourls_add_filter( 'shunt_log_redirect', function( $u, $k ) { return true; } );
358+
yourls_add_filter( 'shunt_update_clicks', function( ) { return true; } );
359+
yourls_add_filter( 'shunt_log_redirect', function( ) { return true; } );
360360
}
361361
}
362362
/********************* HOUSEKEEPING ************************/

0 commit comments

Comments
 (0)