From 3de7b6d6cee78011b9117ca0df3e076794391d00 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 13 Nov 2016 19:19:35 +0000 Subject: [PATCH 1/2] Several shorteners doesn't work anymore --- include/network.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/network.php b/include/network.php index f20445d27..91cfe3579 100644 --- a/include/network.php +++ b/include/network.php @@ -789,12 +789,12 @@ function short_link($url) { $yourls->set('password', $yourls_password); $yourls->set('ssl', $yourls_ssl); $yourls->set('yourls-url', $yourls_url); - $slinky->set_cascade( array($yourls, new Slinky_UR1ca(), new Slinky_Trim(), new Slinky_IsGd(), new Slinky_TinyURL())); + $slinky->set_cascade(array($yourls, new Slinky_UR1ca(), new Slinky_TinyURL())); } else { // setup a cascade of shortening services // try to get a short link from these services - // in the order ur1.ca, trim, id.gd, tinyurl - $slinky->set_cascade(array(new Slinky_UR1ca(), new Slinky_Trim(), new Slinky_IsGd(), new Slinky_TinyURL())); + // in the order ur1.ca, tinyurl + $slinky->set_cascade(array(new Slinky_ur1ca(), new Slinky_TinyURL())); } return $slinky->short(); } From 5ef688f1d2188d58ee42792b597b02fc47c57472 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 14 Nov 2016 05:44:18 +0000 Subject: [PATCH 2/2] Case correction --- include/network.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/network.php b/include/network.php index 91cfe3579..351951846 100644 --- a/include/network.php +++ b/include/network.php @@ -789,12 +789,12 @@ function short_link($url) { $yourls->set('password', $yourls_password); $yourls->set('ssl', $yourls_ssl); $yourls->set('yourls-url', $yourls_url); - $slinky->set_cascade(array($yourls, new Slinky_UR1ca(), new Slinky_TinyURL())); + $slinky->set_cascade(array($yourls, new Slinky_Ur1ca(), new Slinky_TinyURL())); } else { // setup a cascade of shortening services // try to get a short link from these services // in the order ur1.ca, tinyurl - $slinky->set_cascade(array(new Slinky_ur1ca(), new Slinky_TinyURL())); + $slinky->set_cascade(array(new Slinky_Ur1ca(), new Slinky_TinyURL())); } return $slinky->short(); }