real pubblication tickets query
Merge branch 'timeline' of https://github.com/bedita/tickets into timeline

Conflicts:
	controllers/tickets_controller.php
	views/elements/timeline.tpl