Commenting out dead variables and dead code.

This commit is contained in:
jgen 2014-04-24 04:44:28 -04:00
parent f9c8a1720e
commit 868f8c9225
2 changed files with 7 additions and 6 deletions

View file

@ -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);

View file

@ -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) ? "" : "<br><a href='mailto:$contact_link'>Contact</a>";
$subheading = empty($page->subheading) ? "" : "<div id='subtitle'>{$page->subheading}</div>";
/*$subheading = empty($page->subheading) ? "" : "<div id='subtitle'>{$page->subheading}</div>";
$wrapper = "";
if(strlen($page->heading) > 100) {
$wrapper = ' style="height: 3em; overflow: auto;"';
}
*/
$flash = get_prefixed_cookie("flash_message");
$flash_html = "";