summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/general.lib.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/general.lib.php b/lib/general.lib.php
index 9ba241b2..0e0f10c8 100644
--- a/lib/general.lib.php
+++ b/lib/general.lib.php
@@ -27,8 +27,8 @@
*/
function set_memory_limit($new_limit) {
- $current_limit = unUI::format_bytes(ini_get('memory_limit'));
- $new_limit = unUI::format_bytes($new_limit);
+ $current_limit = UI::unformat_bytes(ini_get('memory_limit'));
+ $new_limit = UI::unformat_bytes($new_limit);
if ($current_limit < $new_limit) {
ini_set (memory_limit, $new_limit);