Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 192 → Rev 193

/trunk/media/video/series/application/views/IndexView.php
56,8 → 56,35
* @param string $s
* @return string
*/
function _ ($s)
public function _ ($s)
{
return $this->_translator->translate($s, $this->_textDomain, $this->_language);
}
 
public function getCoverage ($seen)
{
if (!is_array($seen))
{
return '';
}
 
return implode(', ',
array_map(
function ($e) {
if (is_array($e))
{
if ($e[1] === $e[0] + 1)
{
return implode(', ', $e);
}
 
return $e[0] . '–' . $e[1];
}
 
return $e;
},
$seen
)
);
}
}