mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
define( CONSTANT, 'value' ) becomes define( "CONSTANT", 'value')
git-svn-id: http://piwigo.org/svn/trunk@231 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+2
-2
@@ -159,8 +159,8 @@ $tpl = array( 'stats_last_days','delete','close','submit','open' );
|
||||
templatize_array( $tpl, 'lang', $sub );
|
||||
$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
|
||||
//--------------------------------------------------- number of days to display
|
||||
if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
|
||||
else define( MAX_DAYS, 0 );
|
||||
if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] );
|
||||
else define( "MAX_DAYS", 0 );
|
||||
//----------------------------------------- non specific section initialization
|
||||
$array_cat_directories = array();
|
||||
$array_cat_names = array();
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
* the Free Software Foundation; *
|
||||
* *
|
||||
***************************************************************************/
|
||||
define( PREFIX_INCLUDE, '' );
|
||||
define( "PREFIX_INCLUDE", '' );
|
||||
|
||||
include_once( './include/config.inc.php' );
|
||||
include_once( './include/user.inc.php' );
|
||||
|
||||
+2
-2
@@ -42,8 +42,8 @@ $tpl = array( 'stats_last_days','date','login',
|
||||
templatize_array( $tpl, 'lang', $sub );
|
||||
$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
|
||||
//--------------------------------------------------- number of days to display
|
||||
if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
|
||||
else define( MAX_DAYS, 0 );
|
||||
if ( isset( $_GET['last_days'] ) ) define( "MAX_DAYS", $_GET['last_days'] );
|
||||
else define( "MAX_DAYS", 0 );
|
||||
|
||||
foreach ( $conf['last_days'] as $option ) {
|
||||
$vtp->addSession( $sub, 'last_day_option' );
|
||||
|
||||
Reference in New Issue
Block a user