From 67e703e86197802bdb58ea00d8be3e2b063ae00e Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Fri, 28 Feb 2014 13:16:40 +0400 Subject: [PATCH] optional maxLen parameter in prettyPrint --- twisterpost.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/twisterpost.php b/twisterpost.php index 17dd47a..4b61d76 100644 --- a/twisterpost.php +++ b/twisterpost.php @@ -105,10 +105,8 @@ class TwisterPost return true; } - public function prettyPrint($title, $url = '', $tags = null) + public function prettyPrint($title, $url = '', $tags = null, $maxLen = 140) { - $maxLen = 140; - $title_len = mb_strlen($title); $url_len = mb_strlen($url);