Replace deprecated defaults() calls with ?? and ?: in include/ and view/
This commit is contained in:
@@ -28,7 +28,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
|
||||
<html>
|
||||
<head>
|
||||
<title><?php if (!empty($page['title'])) echo $page['title'] ?></title>
|
||||
<meta request="<?php echo htmlspecialchars(defaults($_REQUEST, 'pagename', '')) ?>">
|
||||
<meta request="<?php echo htmlspecialchars($_REQUEST['pagename'] ?? '') ?>">
|
||||
<script type="text/javascript">var baseurl = "<?php echo System::baseUrl(); ?>";</script>
|
||||
<script type="text/javascript">var frio = "<?php echo 'view/theme/frio'; ?>";</script>
|
||||
<?php
|
||||
@@ -141,7 +141,7 @@ $is_singleuser_class = $is_singleuser ? "is-singleuser" : "is-not-singleuser";
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<?php echo defaults($page, 'footer', ''); ?>
|
||||
<?php echo $page['footer'] ?? ''; ?>
|
||||
</footer>
|
||||
<?php } ?> <!-- End of condition if $minimal else the rest -->
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user