]> git.wh0rd.org Git - tt-rss.git/commitdiff
mobile/classic: remove USER_STYLESHEET_URL
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 29 Mar 2011 12:00:06 +0000 (16:00 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 29 Mar 2011 12:00:06 +0000 (16:00 +0400)
mobile/classic/index.php
modules/pref-prefs.php

index 21f1701063a309b157af58b8701e13e5c1d8e052..db2215b24a5e0b5ad924ec0d39ef4f1baa860479 100644 (file)
@@ -5,11 +5,11 @@
 
        require_once "../../config.php";
        require_once "functions.php";
-       require_once "../../functions.php"; 
+       require_once "../../functions.php";
 
        require_once "../../sessions.php";
 
-       require_once "../../version.php"; 
+       require_once "../../version.php";
        require_once "../../db-prefs.php";
 
        $link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
@@ -24,7 +24,7 @@
        $go = $_GET["go"];
 
        if ($subop == "tc" && !$go) {
-               
+
                $cat_id = db_escape_string($_GET["id"]);
                toggle_collapse_cat($link, $cat_id);
 
        <link rel="stylesheet" type="text/css" href="mobile.css">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <script type="text/javascript" src="mobile.js"></script>
-
-       <?php $user_css_url = get_pref($link, 'USER_STYLESHEET_URL'); ?>
-       <?php if ($user_css_url) { ?>
-               <link rel="stylesheet" type="text/css" href="<?php echo $user_css_url ?>"/> 
-       <?php } ?>
+       <?php print_user_stylesheet($link) ?>
 </head>
 <body id="ttrssMobile">
 
        if (!$go) {
                render_feeds_list($link);
        } else if ($go == "vf") {
-               render_headlines($link);        
+               render_headlines($link);
        } else if ($go == "view") {
                render_article($link);
        } else if ($go == "sform") {
index c78937dc87ad0ac6d9865e9596a5c80732d8611f..191facfd1b0d2126c9764014ed29e67be3e3e964 100644 (file)
@@ -5,8 +5,7 @@
 
                $subop = $_REQUEST["subop"];
 
-               $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD",
-                       "USER_STYLESHEET_URL");
+               $prefs_blacklist = array("HIDE_READ_FEEDS", "FEEDS_SORT_BY_UNREAD");
 
                $profile_blacklist = array("ALLOW_DUPLICATE_POSTS", "PURGE_OLD_DAYS",
                        "PURGE_UNREAD_ARTICLES", "DIGEST_ENABLE", "DIGEST_CATCHUP",