]> git.wh0rd.org Git - tt-rss.git/commitdiff
backend: do not include all modules all the time
authorAndrew Dolgov <fox@fakecake.org>
Sun, 11 Dec 2011 18:23:11 +0000 (22:23 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Sun, 11 Dec 2011 18:23:11 +0000 (22:23 +0400)
backend.php

index c702c9fb8a0ea76dba1098b278fd367929da666b..077788dc7cf3822b6b90f042b27cbd9245d218d8 100644 (file)
                5 => __("Power User"),
                10 => __("Administrator"));
 
-       require_once "modules/pref-prefs.php";
-       require_once "modules/popup-dialog.php";
-       require_once "modules/help.php";
-       require_once "modules/pref-feeds.php";
-       require_once "modules/pref-filters.php";
-       require_once "modules/pref-labels.php";
-       require_once "modules/pref-users.php";
-       require_once "modules/pref-instances.php";
+       
 
        $error = sanity_check($link);
 
                break; // viewfeed
 
                case "pref-feeds":
+                       require_once "modules/pref-feeds.php";
                        module_pref_feeds($link);
                break; // pref-feeds
 
                case "pref-filters":
+                       require_once "modules/pref-filters.php";
                        module_pref_filters($link);
                break; // pref-filters
 
                case "pref-labels":
+                       require_once "modules/pref-labels.php";
                        module_pref_labels($link);
                break; // pref-labels
 
                case "pref-prefs":
+                       require_once "modules/pref-prefs.php";
                        module_pref_prefs($link);
                break; // pref-prefs
 
                case "pref-users":
+                       require_once "modules/pref-users.php";
                        module_pref_users($link);
                break; // prefs-users
 
                case "help":
+                       require_once "modules/help.php";
                        module_help($link);
                break; // help
 
                case "dlg":
+                       require_once "modules/popup-dialog.php";
                        module_popup_dialog($link);
                break; // dlg
 
-               case "pref-pub-items":
-                       module_pref_pub_items($link);
-               break; // pref-pub-items
-
-               case "pref-feed-browser":
-                       module_pref_feed_browser($link);
-               break; // pref-feed-browser
-
                case "pref-instances":
+                       require_once "modules/pref-instances.php";
                        module_pref_instances($link);
                break; // pref-instances