query(" SELECT id,name FROM actions ")->assoc_results; foreach($rows as $action){ $actions[intval($action['id'])] = $action['name']; } $activities = Bugs::$sql->query(" SELECT date, a_id, data FROM activities ORDER BY date DESC LIMIT ?,? ",'ii',$context->page,$context->amount)->assoc_results; ?> Bugs - Timeline Home
strtotime($activity['date']), 'action'=> $actions[intval($activity['a_id'])], 'data'=> new Arguments(json_decode($activity['data'],true)), 'template'=> 'default' )); if(file_exists("templates/activities/{$activity->action}.php")){ $activity->template = $activity->action; } echo Bugs::template("activities/{$activity->template}") ->run($activity); } ?>