diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-06-28 08:55:47 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-06-28 08:55:47 +0200 |
commit | a32b2f2ef7d290c9470e3718fab4b2e68b82c0c6 (patch) | |
tree | 139e95edfe513025b9947bfcfb6741bad19b103d /web/html | |
parent | 2e20a7929f2a3e2b6470d7e1e4d9dc69c859aaf1 (diff) | |
download | aurweb-a32b2f2ef7d290c9470e3718fab4b2e68b82c0c6.tar.xz |
Replace split() invocations with explode()
Do not use split(), which has been deprecated as of PHP 5.3.0. As we
don't even require regular expressions here, just use explode() instead.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r-- | web/html/pkgsubmit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 9577238..fd51c7e 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -101,7 +101,7 @@ if ($uid): $continuation_line = 0; $current_line = ""; $paren_depth = 0; - foreach (split("\n", $pkgbuild_raw) as $line) { + foreach (explode("\n", $pkgbuild_raw) as $line) { $line = trim($line); # Remove comments $line = preg_replace('/\s*#.*/', '', $line); |