Craven, it's strange. Are you using 3.1? Here where I put the code
PHP Code:
function ShowDetailPage() {
// vars global configuration
global $conn, $dbServer, $dbHostname, $dbUsername, $dbPassword, $dbName, $theme_name,
$theme_path, $rev_max_rows, $rev_max_pages, $rev_max_chapters, $category_separator;
// vars url & form
global $id;
// vars messages
global $msg;
// vars template
global $link_detail,$pagination,$review_rows,$ofc_review;
global $linkid;
if(empty($id)) $id = $linkid;
$links_obj = new clsLink;
$links_obj->InitDB($dbServer,$dbHostname,$dbUsername,$dbPassword,$dbName);