Ignore:
Timestamp:
Apr 6, 2020, 11:56:19 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Do not use parenthesis around returned value.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/System.php

    r873 r874  
    7575      {
    7676        array_shift($PathItems);
    77         return ($this->SearchPage($PathItems, $Pages[$PathItem]));
    78       } else return ($Pages[$PathItem]);
    79     } else return ('');
     77        return $this->SearchPage($PathItems, $Pages[$PathItem]);
     78      } else return $Pages[$PathItem];
     79    } else return '';
    8080  }
    8181
    8282  function PageNotFound()
    8383  {
    84     return ('Page '.implode('/', $this->PathItems).' not found.');
     84    return 'Page '.implode('/', $this->PathItems).' not found.';
    8585  }
    8686
     
    102102  function ModulePresent($Name)
    103103  {
    104     return (array_key_exists($Name, $this->Modules));
     104    return array_key_exists($Name, $this->Modules);
    105105  }
    106106
     
    112112  function HumanDate($Time)
    113113  {
    114     return (date('j.n.Y', $Time));
     114    return date('j.n.Y', $Time);
    115115  }
    116116
    117117  function Link($Target)
    118118  {
    119     return ($this->RootURLFolder.$Target);
     119    return $this->RootURLFolder.$Target;
    120120  }
    121121
     
    135135        '" width="16" height="16" /> <a href="'.$Action['URL'].'">'.$Action['Title'].'</a>';
    136136    }
    137     return ($Output);
     137    return $Output;
    138138  }
    139139
     
    282282  {
    283283    Header($_SERVER['SERVER_PROTOCOL'].' 404 Not Found');
    284     return ('<h3 align="center">Požadovaná stránka neexistuje.</h3>');
     284    return '<h3 align="center">Požadovaná stránka neexistuje.</h3>';
    285285  }
    286286}
Note: See TracChangeset for help on using the changeset viewer.