31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-07 07:50:48 +00:00

Truncate long titles (Fix #98)

This commit is contained in:
Michael Babker 2015-12-05 12:09:42 -05:00
parent d1111be051
commit 95f62b498d

View File

@ -348,7 +348,7 @@ class PullsModel extends \JModelDatabase
// Build the data object to store in the database
$pullData = array(
$pull->number,
$this->getDb()->quote($pull->title),
$this->getDb()->quote(\JHtml::_('string.truncate', $pull->title, 150)),
$this->getDb()->quote(\JHtml::_('string.truncate', $pull->body, 100)),
$this->getDb()->quote($pull->html_url),
$this->getDb()->quote($pull->head->sha)