optional maxLen parameter in prettyPrint

This commit is contained in:
Denis Ryabov 2014-02-28 13:16:40 +04:00
parent 3893eff7b4
commit 67e703e861

View File

@ -105,10 +105,8 @@ class TwisterPost
return true; 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); $title_len = mb_strlen($title);
$url_len = mb_strlen($url); $url_len = mb_strlen($url);