summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/prefs.php b/prefs.php
index a6cbfd886..3f6eb47c6 100644
--- a/prefs.php
+++ b/prefs.php
@@ -5,7 +5,8 @@
require_once "autoload.php";
require_once "sessions.php";
require_once "functions.php";
- require_once "sanity_check.php";
+
+ Config::sanity_check();
if (!init_plugins()) return;
@@ -22,7 +23,7 @@
<?php if ($_SESSION["uid"] && empty($_SESSION["safe_mode"])) {
$theme = get_pref(Prefs::USER_CSS_THEME);
if ($theme && theme_exists("$theme")) {
- echo stylesheet_tag(get_theme_path($theme), 'theme_css');
+ echo stylesheet_tag(get_theme_path($theme), ['id' => 'theme_css']);
}
} ?>
@@ -117,6 +118,7 @@
title="<?= __("Communication problem with server.") ?>">error_outline</i>
<i class="material-icons log-alert" style="display : none" onclick="App.openPreferences('system')"
title="<?= __("Recent entries found in event log.") ?>">warning</i>
+ <i id="updates-available" class="material-icons icon-new-version" style="display : none">new_releases</i>
<a href="#" onclick="document.location.href = 'index.php'"><?= __('Exit preferences') ?></a>
</div>
@@ -149,14 +151,12 @@
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_PREFS_TABS);
?>
</div>
- <?php $version = get_version($git_commit, $git_timestamp, $last_error); ?>
<div id="footer" dojoType="dijit.layout.ContentPane" region="bottom">
- <a class="text-muted" target="_blank" href="https://tt-rss.org/">Tiny Tiny RSS</a>
- <span title="<?= htmlspecialchars($last_error) ?>">v<?= $version ?></span>
- &copy; 2005-<?= date('Y') ?>
- <a class="text-muted" target="_blank"
- href="https://fakecake.org/">Andrew Dolgov</a>
- </div> <!-- footer -->
+ <a class="text-muted" target="_blank" href="https://tt-rss.org/">Tiny Tiny RSS</a>
+ <span>v<?= Config::get_version() ?></span>
+ &copy; 2005-<?= date('Y') ?>
+ <a class="text-muted" target="_blank" href="https://fakecake.org/">Andrew Dolgov</a>
+ </div>
</div>
</body>