summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-08-04 16:29:26 +0400
committerAndrew Dolgov <[email protected]>2011-08-04 16:29:26 +0400
commitb9d54789bad5d81c691a73f81e78d5700966589c (patch)
tree1ef1b15eeb2726f5f853675bfd37db2f842d2733 /functions.php
parent956cca2a2a057e2a835118490434b49cca3f6c53 (diff)
misc code cleanup
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php34
1 files changed, 5 insertions, 29 deletions
diff --git a/functions.php b/functions.php
index 7c5916a1a..04709805b 100644
--- a/functions.php
+++ b/functions.php
@@ -4949,12 +4949,12 @@
$subop_split = explode(":", $subop);
- if ($subop == "CatchupSelected") {
+/* if ($subop == "CatchupSelected") {
$ids = explode(",", db_escape_string($_REQUEST["ids"]));
$cmode = sprintf("%d", $_REQUEST["cmode"]);
catchupArticlesById($link, $ids, $cmode);
- }
+ } */
if ($subop == "ForceUpdate" && sprintf("%d", $feed) > 0) {
update_rss_feed($link, $feed, true);
@@ -5006,8 +5006,6 @@
$rtl_content = false;
}
- /// START /////////////////////////////////////////////////////////////////////////////////
-
@$search = db_escape_string($_REQUEST["query"]);
if ($search) {
@@ -5021,8 +5019,6 @@
$match_on = "both";
}
- //$real_offset = $offset * $limit;
-
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("H0", $timing_info);
$qfh_ret = queryFeedHeadlines($link, $feed, $limit, $view_mode, $cat_view,
@@ -5037,12 +5033,11 @@
$vgroup_last_feed = $vgr_last_feed;
- /// STOP //////////////////////////////////////////////////////////////////////////////////
-
if (!$offset) {
if (db_num_rows($result) > 0) {
- $reply['toolbar'] = format_headline_subtoolbar($link, $feed_site_url, $feed_title,
+ $reply['toolbar'] = format_headline_subtoolbar($link, $feed_site_url,
+ $feed_title,
$feed, $cat_view, $search, $match_on, $search_mode, $view_mode,
$last_error);
}
@@ -5606,22 +5601,9 @@
}
function get_self_url_prefix() {
-
- /* $url_path = "";
-
- if ($_SERVER['HTTPS'] != "on") {
- $url_path = "http://";
- } else {
- $url_path = "https://";
- }
-
- $url_path .= $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']);
-
- return $url_path; */
-
return SELF_URL_PATH;
-
}
+
function opml_publish_url($link){
$url_path = get_self_url_prefix();
@@ -6360,12 +6342,6 @@
$num_tags = 0;
-/* if (get_user_theme($link) == "3pane") {
- $tag_limit = 3;
- } else {
- $tag_limit = 6;
- } */
-
$tag_limit = 6;
$formatted_tags = array();