Skip to content

Commit

Permalink
BUGFIX File::ini2bytes() is now declared as static, as it was never an
Browse files Browse the repository at this point in the history
instance method
  • Loading branch information
Sean Harvey committed Apr 12, 2012
1 parent 4c1aba8 commit a9f9505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem/File.php
Expand Up @@ -796,7 +796,7 @@ public static function format_size($size) {
* @param string $phpIniValue * @param string $phpIniValue
* @return int * @return int
*/ */
public function ini2bytes($PHPiniValue) { public static function ini2bytes($PHPiniValue) {
switch(strtolower(substr(trim($PHPiniValue), -1))) { switch(strtolower(substr(trim($PHPiniValue), -1))) {
case 'g': case 'g':
$PHPiniValue *= 1024; $PHPiniValue *= 1024;
Expand Down

0 comments on commit a9f9505

Please sign in to comment.