summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_block.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-01 10:05:05 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-01 10:05:05 -0800
commit774e0be66ecd0c0012ab94a389e38eb81df6eab0 (patch)
treec88e290a3613bf271fb14a9d999edfc90da2caa3 /modules/gallery/helpers/gallery_block.php
parent488b67014b44baf8bb19deaf7c77e87a95be220b (diff)
Replace split() with explode() since split is deprecated in PHP 5.3
Fixes ticket #865
Diffstat (limited to 'modules/gallery/helpers/gallery_block.php')
-rw-r--r--modules/gallery/helpers/gallery_block.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_block.php b/modules/gallery/helpers/gallery_block.php
index 0052affc..b5c32ad2 100644
--- a/modules/gallery/helpers/gallery_block.php
+++ b/modules/gallery/helpers/gallery_block.php
@@ -72,7 +72,7 @@ class gallery_block_Core {
$block->content = new View("admin_block_platform.html");
if (is_readable("/proc/loadavg")) {
$block->content->load_average =
- join(" ", array_slice(split(" ", array_shift(file("/proc/loadavg"))), 0, 3));
+ join(" ", array_slice(explode(" ", array_shift(file("/proc/loadavg"))), 0, 3));
} else {
$block->content->load_average = t("Unavailable");
}