mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
convert tabulations into 2-spaces for indentation (introduced in r13240)
git-svn-id: http://piwigo.org/svn/trunk@13258 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -33,12 +33,12 @@ function get_root_url()
|
||||
if ( ($root_url = @$page['root_path']) == null )
|
||||
{// TODO - add HERE the possibility to call PWG functions from external scripts
|
||||
$root_url = PHPWG_ROOT_PATH;
|
||||
if ( strncmp($root_url, './', 2) == 0 )
|
||||
{
|
||||
return substr($root_url, 2);
|
||||
}
|
||||
if ( strncmp($root_url, './', 2) == 0 )
|
||||
{
|
||||
return substr($root_url, 2);
|
||||
}
|
||||
}
|
||||
return $root_url;
|
||||
return $root_url;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -300,29 +300,29 @@ function make_section_in_url($params)
|
||||
{
|
||||
global $conf;
|
||||
$section_string = '';
|
||||
$section = @$params['section'];
|
||||
if (!isset($section))
|
||||
{
|
||||
$section_of = array(
|
||||
'category' => 'categories',
|
||||
'tags' => 'tags',
|
||||
'list' => 'list',
|
||||
'search' => 'search',
|
||||
);
|
||||
$section = @$params['section'];
|
||||
if (!isset($section))
|
||||
{
|
||||
$section_of = array(
|
||||
'category' => 'categories',
|
||||
'tags' => 'tags',
|
||||
'list' => 'list',
|
||||
'search' => 'search',
|
||||
);
|
||||
|
||||
foreach ($section_of as $param => $s)
|
||||
{
|
||||
if (isset($params[$param]))
|
||||
{
|
||||
$section = $s;
|
||||
}
|
||||
}
|
||||
foreach ($section_of as $param => $s)
|
||||
{
|
||||
if (isset($params[$param]))
|
||||
{
|
||||
$section = $s;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($section))
|
||||
{
|
||||
$section = 'none';
|
||||
}
|
||||
}
|
||||
if (!isset($section))
|
||||
{
|
||||
$section = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
switch($section)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user