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
parent 1a077b0a7f
commit 10d4191bd1
3 changed files with 5 additions and 1 deletions

View File

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