summaryrefslogtreecommitdiff
path: root/lib/Shorturl_api.php
diff options
context:
space:
mode:
authorJeff Mitchell <mitchell@kde.org>2009-06-11 13:07:41 +0000
committerJeff Mitchell <mitchell@kde.org>2009-06-11 13:07:41 +0000
commit10d4191bd103d177734ce4cf8006cd7af88e139b (patch)
tree35a3ce2688d8827d38ffbdbd51a1f40eec5f1f9a /lib/Shorturl_api.php
parent1a077b0a7fa699302d7ff2ff59feb118d5653c15 (diff)
Add site-wide option to change the length at which URLs are auto-shortened
Diffstat (limited to 'lib/Shorturl_api.php')
-rw-r--r--lib/Shorturl_api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Shorturl_api.php b/lib/Shorturl_api.php
index fe106cb83..d1fc5eb6d 100644
--- a/lib/Shorturl_api.php
+++ b/lib/Shorturl_api.php
@@ -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) {