]> git.wh0rd.org - tt-rss.git/blobdiff - prefs.php
modify includes to init session before translations are applied
[tt-rss.git] / prefs.php
index 74bcd4cc17d58a6168249a35b6df0c38c1c15cb1..85838861c2b076b69d34c22a32ffe554c6514f85 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -2,8 +2,8 @@
        set_include_path(dirname(__FILE__) ."/include" . PATH_SEPARATOR .
                get_include_path());
 
-       require_once "functions.php";
        require_once "sessions.php";
+       require_once "functions.php";
        require_once "sanity_check.php";
        require_once "version.php";
        require_once "config.php";
@@ -20,7 +20,6 @@
        no_cache_incantation();
 
        header('Content-Type: text/html; charset=utf-8');
-
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        </div>
 </div>
 
-<div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)"></div>
-
 <img id="piggie" src="images/piggie.png" style="display : none" alt="piggie"/>
 
 <div id="header" dojoType="dijit.layout.ContentPane" region="top">
-       <a href='#' onclick="showHelp()"><?php echo __("Keyboard shortcuts") ?></a> |
+       <!-- <a href='#' onclick="showHelp()"><?php echo __("Keyboard shortcuts") ?></a> | -->
        <a href="#" onclick="gotoMain()"><?php echo __('Exit preferences') ?></a>
 </div>
 
                href="backend.php?op=pref-users"
                title="<?php echo __('Users') ?>"></div>
 <?php } ?>
-<?php if ($_SESSION["access_level"] >= 10 || SINGLE_USER_MODE) { ?>
-       <div id="instanceConfigTab" dojoType="dijit.layout.ContentPane"
-               href="backend.php?op=pref-instances"
-               title="<?php echo __('Linked') ?>"></div>
-<?php } ?>
-
+<?php
+       $pluginhost->run_hooks($pluginhost::HOOK_PREFS_TABS,
+               "hook_prefs_tabs", false);
+?>
 </div>
 
 <div id="footer" dojoType="dijit.layout.ContentPane" region="bottom">