mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
append central HTML to $output, do not echo $code anymore
git-svn-id: http://piwigo.org/svn/branches/release-1_3@350 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
c19070a07d
commit
fe34ce4046
10 changed files with 19 additions and 28 deletions
|
@ -36,7 +36,6 @@ $vtp->setVar( $handle, 'user_template', $user['template'] );
|
|||
$url = './category.php?'.$_SERVER['QUERY_STRING'];
|
||||
$vtp->setVar( $handle, 'back_url', add_session_id( $url ) );
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -492,8 +492,7 @@ if ( isset ( $page['cat'] ) )
|
|||
pwg_log( 'category', $page['title'] );
|
||||
mysql_close();
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -184,7 +184,6 @@ $query.= ';';
|
|||
$result = mysql_query( $query );
|
||||
display_pictures( $result, $maxtime, $user['restrictions'] );
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -111,7 +111,6 @@ if ( $conf['access'] == 'free' )
|
|||
$vtp->closeSession( $handle, 'register' );
|
||||
}
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -756,8 +756,7 @@ if ( $conf['show_comments'] )
|
|||
pwg_log( 'picture', $intitule_cat, $page['file'] );
|
||||
mysql_close();
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -364,7 +364,6 @@ if ( $conf['authorize_cookies'] )
|
|||
$vtp->closeSession( $handle, 'cookie' );
|
||||
}
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -103,7 +103,6 @@ if (isset( $_POST['mail_address']))
|
|||
$vtp->closeSession( $handle, 'text' );
|
||||
$vtp->closeSession( $handle, 'line' );
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
include('include/page_tail.php');
|
||||
?>
|
|
@ -118,8 +118,7 @@ $vtp->closeSession( $handle, 'line' );
|
|||
//---------------------------------------------------- return to main page link
|
||||
$vtp->setGlobalVar( $handle, 'back_url', add_session_id( './category.php' ) );
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
//------------------------------------------------------------ log informations
|
||||
pwg_log( 'search', $title );
|
||||
mysql_close();
|
||||
|
|
|
@ -385,7 +385,6 @@ else
|
|||
$url = './category.php?cat='.$page['cat'].'&expand='.$_GET['expand'];
|
||||
$vtp->setGlobalVar( $handle, 'return_url', add_session_id( $url ) );
|
||||
//----------------------------------------------------------- html code display
|
||||
$code = $vtp->Display( $handle, 0 );
|
||||
echo $code;
|
||||
$output.= $vtp->Display( $handle, 0 );
|
||||
include('include/page_tail.php');
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue