mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
2e20a7929f
commit
a32b2f2ef7
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ if ($uid):
|
||||||
$continuation_line = 0;
|
$continuation_line = 0;
|
||||||
$current_line = "";
|
$current_line = "";
|
||||||
$paren_depth = 0;
|
$paren_depth = 0;
|
||||||
foreach (split("\n", $pkgbuild_raw) as $line) {
|
foreach (explode("\n", $pkgbuild_raw) as $line) {
|
||||||
$line = trim($line);
|
$line = trim($line);
|
||||||
# Remove comments
|
# Remove comments
|
||||||
$line = preg_replace('/\s*#.*/', '', $line);
|
$line = preg_replace('/\s*#.*/', '', $line);
|
||||||
|
|
Loading…
Add table
Reference in a new issue