Cotonti/Cotonti — Issue #780: News plugin bug
Author: macik
Created: 2011-12-26 04:08:33+00:00
State: open

Not truncating page content even specified in Admin→Extension→Page→Structure→Category config→limit text length...

Bug in 'news.php' line 46:
```	$v[2] = ((int)$v[2] > 0) ? $v[2] : 0;
```
Nedd to be:
```	$v[2] = ((int)$v[2] > 0) ? $v[2] : $cfg['page'][$v[0]]['truncatetext'];
```
Or even:
```	$v[2] = (int)$cfg['page'][$v[0]]['truncatetext'];
```