Commit 996d4d12 authored by Rusty Russell's avatar Rusty Russell

web: fix for PHP7.

split() was deprecated, is now removed. explode() is the new hotness.
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 5ff76d98
...@@ -63,7 +63,7 @@ if ($extdepends) { ...@@ -63,7 +63,7 @@ if ($extdepends) {
<h3>External dependencies:</h3> <h3>External dependencies:</h3>
<ul class='external-dependencies'> <ul class='external-dependencies'>
<?php <?php
foreach (split("\n", $extdepends) as $dep) { foreach (explode("\n", $extdepends) as $dep) {
$fields=preg_split("/\s+/", $dep); $fields=preg_split("/\s+/", $dep);
echo "<li>" . $fields[0].' '; echo "<li>" . $fields[0].' ';
if (count($fields) > 1) if (count($fields) > 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment