- <title><?php if(x($page,'title')) echo $page['title'] ?></title>
- <script>var baseurl="<?php echo Friendica\Core\System::baseUrl() ?>";</script>
- <?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
+ <title><?php if(!empty($page['title'])) echo $page['title'] ?></title>
+ <script>var baseurl="<?php echo Friendica\DI::baseUrl() ?>";</script>
+ <?php if(!empty($page['htmlhead'])) echo $page['htmlhead'] ?>