Add site-wide option to change the length at which URLs are auto-shortened

This commit is contained in:
Jeff Mitchell
2009-06-11 13:07:41 +00:00
committed by Zach Copley
parent ccbc5c447d
commit b416df9312
3 changed files with 5 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ class ShortUrlApi
}
private function is_long($url) {
return strlen($url) >= $this->long_limit;
return strlen($url) >= common_config('site', 'shorturllength');
}
protected function http_post($data) {