aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2009-03-03 01:39:48 +0000
committerrvelices <rv-github@modusoptimus.com>2009-03-03 01:39:48 +0000
commit54902df0a4d0c9cd0c93bc285c7388f6c9e5205e (patch)
treec9856105c8c12c62d853cfb9e81dfef248176394 /include/section_init.inc.php
parent1d034894d99813b00cc564dd93f0057ea84f8694 (diff)
small code refactor - group together some code that should be together
git-svn-id: http://piwigo.org/svn/trunk@3167 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/section_init.inc.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index e6eac34f3..59809dad6 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -108,6 +108,7 @@ if (script_basename() == 'picture') // basename without file extention
}
else
{
+ $page['image_id'] = 0; // more work in picture.php
if ( !empty($matches[2]) )
{
$page['image_file'] = $matches[2];
@@ -562,12 +563,6 @@ if (isset($page['chronology_field']))
initialize_calendar();
}
-if (script_basename() == 'picture'
- and !isset($page['image_id']) )
-{
- $page['image_id'] = 0; // more work in picture.php
-}
-
// add meta robots noindex, nofollow to avoid unnecesary robot crawls
$page['meta_robots']=array();
if ( isset($page['chronology_field'])