Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
fix(package): remove unused method getMaxFileSize
Browse files Browse the repository at this point in the history
Signed-off-by: Domingo Oropeza <doropeza@teclib.com>
  • Loading branch information
DIOHz0r committed Mar 9, 2018
1 parent 27fbbd3 commit 6cf1214
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions inc/package.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,25 +159,6 @@ public function showForm($ID, array $options = []) {
$this->showFormButtons($options);
}

/**
* Gets the maximum file size allowed for uploads from PHP configuration
* @return integer maximum file size
*/
protected static function getMaxFileSize() {
$val = trim(ini_get('post_max_size'));
$last = strtolower($val[strlen($val) - 1]);
switch ($last) {
case 'g':
$val *= 1024;
case 'm':
$val *= 1024;
case 'k':
$val *= 1024;
}

return $val;
}

/**
* @see CommonDBTM::addNeededInfoToInput()
*/
Expand Down

0 comments on commit 6cf1214

Please sign in to comment.