Fix unsupported PHP code.
Call-time pass-by-reference has been removed
diff --git a/script/news.php b/script/news.php
index 6bfe8e0..3db3d94 100644
--- a/script/news.php
+++ b/script/news.php
@@ -76,7 +76,7 @@
* Private function. This is used to generate the output in
* short format.
*/
-function rss_item_to_html_short(& $item, & $html) {
+function rss_item_to_html_short($item, $html) {
// The date is formatted day-month-year using numbers
// The ‑ is a non-breaking en dash.
$date = date("d‑m‑Y", $item->pubDate);
@@ -87,7 +87,7 @@
* Private function. This is used to generate the output in
* long format.
*/
-function rss_item_to_html_long(& $item, & $html) {
+function rss_item_to_html_long($item, $html) {
rss_item_to_html_short($item, $html);
$html .= "<blockquote><p align=\"justify\">$item->description</p></blockquote>";
}
@@ -103,7 +103,7 @@
$this->channel = array();
}
- function add_channel(&$channel) {
+ function add_channel($channel) {
array_push($this->channel, $channel);
}
}