aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2003-11-03 22:39:53 +0000
committerz0rglub <z0rglub@piwigo.org>2003-11-03 22:39:53 +0000
commit0089ab102c906a41aab663cf11d201f1076062cc (patch)
treeb8d03cef732af526134dafbcb0c16de7996ef6b0 /admin
parentd6bb7649fc13703cdfd5c286a980b5ac0b70c988 (diff)
define( CONSTANT, 'value' ) becomes define( "CONSTANT", 'value')
git-svn-id: http://piwigo.org/svn/trunk@231 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/comments.php4
-rw-r--r--admin/include/isadmin.inc.php2
-rw-r--r--admin/stats.php4
3 files changed, 5 insertions, 5 deletions
diff --git a/admin/comments.php b/admin/comments.php
index f13afab30..1b23fbbff 100644
--- a/admin/comments.php
+++ b/admin/comments.php
@@ -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();
diff --git a/admin/include/isadmin.inc.php b/admin/include/isadmin.inc.php
index e064343d5..341fc65ba 100644
--- a/admin/include/isadmin.inc.php
+++ b/admin/include/isadmin.inc.php
@@ -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' );
diff --git a/admin/stats.php b/admin/stats.php
index 08b8f5de0..01780a95e 100644
--- a/admin/stats.php
+++ b/admin/stats.php
@@ -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' );