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

Legend:

Unmodified
Added
Removed
  • trunk/Modules/File/File.php

    r873 r874  
    3838      }
    3939    }
    40     return ($Result);
     40    return $Result;
    4141  }
    4242
     
    4646
    4747    $Result = $MimeTypes[pathinfo($FileName, PATHINFO_EXTENSION)][0];
    48     return ($Result);
     48    return $Result;
    4949  }
    5050
     
    7474      else $Result = $this->FilesDir;
    7575    $Result .= $DbRow['Name'].'/';
    76     return ($Result);
     76    return $Result;
    7777  }
    7878}
     
    8585    if (array_key_exists('id', $_GET)) $Id = $_GET['id'];
    8686    else if (array_key_exists('i', $_GET)) $Id = $_GET['i'];
    87     else return ($this->SystemMessage('Chyba', 'Nezadáno id souboru'));
     87    else return $this->SystemMessage('Chyba', 'Nezadáno id souboru');
    8888    $this->ClearPage = true;
    8989    $Output = $this->System->Modules['File']->Download($Id);
    90     return ($Output);
     90    return $Output;
    9191  }
    9292}
Note: See TracChangeset for help on using the changeset viewer.