From 868f8c922531e6c313c5917d39310ce6a6d44cbe Mon Sep 17 00:00:00 2001 From: jgen Date: Thu, 24 Apr 2014 04:44:28 -0400 Subject: [PATCH] Commenting out dead variables and dead code. --- themes/futaba/comment.theme.php | 8 ++++---- themes/warm/layout.class.php | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/themes/futaba/comment.theme.php b/themes/futaba/comment.theme.php index f65b0b14..eeeb72c4 100644 --- a/themes/futaba/comment.theme.php +++ b/themes/futaba/comment.theme.php @@ -6,8 +6,8 @@ class CustomCommentListTheme extends CommentListTheme { public function display_comment_list($images, $page_number, $total_pages, $can_post) { global $config, $page; - $prev = $page_number - 1; - $next = $page_number + 1; + //$prev = $page_number - 1; + //$next = $page_number + 1; $page_title = $config->get_string('title'); $page->set_title($page_title); @@ -63,9 +63,9 @@ class CustomCommentListTheme extends CommentListTheme { $tfe = new TextFormattingEvent($comment->comment); send_event($tfe); - $i_uid = int_escape($comment->owner_id); + //$i_uid = int_escape($comment->owner_id); $h_name = html_escape($comment->owner_name); - $h_poster_ip = html_escape($comment->poster_ip); + //$h_poster_ip = html_escape($comment->poster_ip); $h_comment = ($trim ? substr($tfe->stripped, 0, 50)."..." : $tfe->formatted); $i_comment_id = int_escape($comment->comment_id); $i_image_id = int_escape($comment->image_id); diff --git a/themes/warm/layout.class.php b/themes/warm/layout.class.php index 46e79774..ba17a673 100644 --- a/themes/warm/layout.class.php +++ b/themes/warm/layout.class.php @@ -9,7 +9,7 @@ class Layout { public function display_page(Page $page) { global $config; - $theme_name = $config->get_string('theme', 'default'); + //$theme_name = $config->get_string('theme', 'default'); $site_name = $config->get_string('title'); $data_href = get_base_href(); $main_page = $config->get_string('main_page'); @@ -49,12 +49,13 @@ class Layout { $debug = get_debug_info(); $contact = empty($contact_link) ? "" : "
Contact"; - $subheading = empty($page->subheading) ? "" : "
{$page->subheading}
"; + /*$subheading = empty($page->subheading) ? "" : "
{$page->subheading}
"; $wrapper = ""; if(strlen($page->heading) > 100) { $wrapper = ' style="height: 3em; overflow: auto;"'; } + */ $flash = get_prefixed_cookie("flash_message"); $flash_html = "";