33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2025-01-03 15:17:22 +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 // Build the data object to store in the database
$pullData = array( $pullData = array(
$pull->number, $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(\JHtml::_('string.truncate', $pull->body, 100)),
$this->getDb()->quote($pull->html_url), $this->getDb()->quote($pull->html_url),
$this->getDb()->quote($pull->head->sha) $this->getDb()->quote($pull->head->sha)