Replace deprecated defaults() calls with ?? and ?: in include/ and view/
This commit is contained in:
parent
c0b78a9720
commit
8b836189d4
11 changed files with 30 additions and 30 deletions
|
|
@ -42,7 +42,7 @@ function add_page_info_data(array $data, $no_photos = false)
|
|||
$data["type"] = "link";
|
||||
}
|
||||
|
||||
$data["title"] = defaults($data, "title", "");
|
||||
$data["title"] = $data["title"] ?? '';
|
||||
|
||||
if ((($data["type"] != "link") && ($data["type"] != "video") && ($data["type"] != "photo")) || ($data["title"] == $data["url"])) {
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue