<?php

/**
 *
 * @copyright  2010 frasq.org
 * @version    1
 * @link       http://www.frasq.org
 */

function thread($lang, $arglist=false) {
	$thread=false;

	if (is_array($arglist)) {
		if (isset($arglist[0])) {
			$thread=$arglist[0];
		}
	}

	if (!$thread) {
		return run('error/notfound', $lang);
	}

	require_once 'actions/threadsummary.php';

	return threadsummary($lang, $thread);
}
