mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX File::ini2bytes() is now declared as static, as it was never an
instance method
This commit is contained in:
parent
4c1aba8542
commit
a9f95051bc
@ -796,7 +796,7 @@ class File extends DataObject {
|
|||||||
* @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;
|
||||||
|
Loading…
Reference in New Issue
Block a user