Show
Ignore:
Timestamp:
02/19/12 20:59:22 (15 months ago)
Author:
plg
Message:

convert tabulations into 2-spaces for indentation (introduced in r13240)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_url.inc.php

    r13240 r13258  
    3434  {// TODO - add HERE the possibility to call PWG functions from external scripts 
    3535    $root_url = PHPWG_ROOT_PATH; 
    36                 if ( strncmp($root_url, './', 2) == 0 ) 
    37                 { 
    38                         return substr($root_url, 2); 
    39                 } 
    40   } 
    41         return $root_url; 
     36    if ( strncmp($root_url, './', 2) == 0 ) 
     37    { 
     38      return substr($root_url, 2); 
     39    } 
     40  } 
     41  return $root_url; 
    4242} 
    4343 
     
    301301  global $conf; 
    302302  $section_string = ''; 
    303         $section = @$params['section']; 
    304         if (!isset($section)) 
    305         { 
    306                 $section_of = array( 
    307                         'category' => 'categories', 
    308                         'tags'     => 'tags', 
    309                         'list'     => 'list', 
    310                         'search'   => 'search', 
    311                         ); 
    312  
    313                 foreach ($section_of as $param => $s) 
    314                 { 
    315                         if (isset($params[$param])) 
    316                         { 
    317                                 $section = $s; 
    318                         } 
    319                 } 
    320  
    321                 if (!isset($section)) 
    322                 { 
    323                         $section = 'none'; 
    324                 } 
    325         } 
     303  $section = @$params['section']; 
     304  if (!isset($section)) 
     305  { 
     306    $section_of = array( 
     307      'category' => 'categories', 
     308      'tags'     => 'tags', 
     309      'list'     => 'list', 
     310      'search'   => 'search', 
     311      ); 
     312 
     313    foreach ($section_of as $param => $s) 
     314    { 
     315      if (isset($params[$param])) 
     316      { 
     317        $section = $s; 
     318      } 
     319    } 
     320 
     321    if (!isset($section)) 
     322    { 
     323      $section = 'none'; 
     324    } 
     325  } 
    326326 
    327327  switch($section)