Browse Source

Case correction

pull/2910/head
Michael 4 years ago
parent
commit
5ef688f1d2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      include/network.php

+ 2
- 2
include/network.php View File

@ -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();
}


Loading…
Cancel
Save