Browse Source

optional maxLen parameter in prettyPrint

master
Denis Ryabov 11 years ago
parent
commit
67e703e861
  1. 4
      twisterpost.php

4
twisterpost.php

@ -105,10 +105,8 @@ class TwisterPost @@ -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);

Loading…
Cancel
Save