Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

Bugfix: class.faq.php > faq teaser is not translated because of missing function

Faq teaser is not translated because there is no function for it existing.

affected file: include > class.faq.php

Inserted after the closing tag "}" in line 198 the following code:

    function getLocalTeaser($lang=false) {
        return Format::truncate(Format::striptags($this->_getLocal('answer', $lang)), 150);

Now you can use "getLocalTeaser()" in your frontpage ("index.php").

Sign In or Register to comment.