diff options
author | gweltas <gweltas@piwigo.org> | 2004-01-18 02:13:02 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-01-18 02:13:02 +0000 |
commit | 00ac0f8d3e45c4fa8b25c646c2b162742038849a (patch) | |
tree | 94a3447e7ef57e2a37c667248be79e48066435e1 /comments.php | |
parent | 64e1ebb49cfa1f329bedbe62841c995f335810d3 (diff) |
Conformity with the XHTML 1.0 transitional standard
Creation of the following files :
- template/default/header.php and template/default/footer.php to ensure a common standard
- default.css to be CSS valid
Obsolescence of the following files :
- template/default/theme/conf.php
- template/default/style.inc.php
Custom galleries should reflect those changes.
git-svn-id: http://piwigo.org/svn/branches/release-1_3@290 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | comments.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/comments.php b/comments.php index ad07958af..46e8e7562 100644 --- a/comments.php +++ b/comments.php @@ -46,7 +46,7 @@ function display_pictures( $mysql_result, $maxtime, $forbidden_cat_ids ) $subrow = mysql_fetch_array( mysql_query( $query ) ); $category_id = $subrow['category_id']; - if ( $array_cat_directories[$category_id] == '' ) + if ( !isset($array_cat_directories[$category_id])) { $array_cat_directories[$category_id] = get_complete_dir( $category_id ); @@ -133,12 +133,16 @@ function display_pictures( $mysql_result, $maxtime, $forbidden_cat_ids ) } } //----------------------------------------------------- template initialization -$vtp = new VTemplate; +// +// Start output of page +// +$title= $lang['title_comments']; +include('include/page_header.php'); + $handle = $vtp->Open( './template/'.$user['template'].'/comments.vtp' ); initialize_template(); $tpl = array( 'title_comments','stats_last_days','search_return_main_page' ); templatize_array( $tpl, 'lang', $handle ); -$vtp->setGlobalVar( $handle, 'text_color', $user['couleur_text'] ); //--------------------------------------------------- number of days to display if ( isset( $_GET['last_days'] ) ) define( 'MAX_DAYS', $_GET['last_days'] ); else define( 'MAX_DAYS', 0 ); @@ -182,4 +186,5 @@ display_pictures( $result, $maxtime, $user['restrictions'] ); //----------------------------------------------------------- html code display $code = $vtp->Display( $handle, 0 ); echo $code; +include('include/page_tail.php'); ?>
\ No newline at end of file |