summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-20 13:17:48 +0400
committerAndrew Dolgov <[email protected]>2013-03-20 13:17:48 +0400
commitf0540b598a40c03882dc1af6c4b95256bb27cb1a (patch)
tree6e9631071d9b0fa0ebd2b8d0d96c5731d71f53d4 /classes
parent81153e6b8bdf3761ebe805ae9622a305d001a786 (diff)
add a hack to prevent loading of stuff for hidden content in unexpanded combined mode (refs #602)
Diffstat (limited to 'classes')
-rw-r--r--classes/feeds.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index c464303c1..0568eb985 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -263,6 +263,8 @@ class Feeds extends Handler_Protected {
if ($_REQUEST["debug"]) $timing_info = print_checkpoint("PS", $timing_info);
+ $expand_cdm = get_pref($this->link, 'CDM_EXPANDED');
+
while ($line = db_fetch_assoc($result)) {
$class = ($lnum % 2) ? "even" : "odd";
@@ -512,8 +514,6 @@ class Feeds extends Handler_Protected {
}
}
- $expand_cdm = get_pref($this->link, 'CDM_EXPANDED');
-
$mouseover_attrs = "onmouseover='postMouseIn($id)'
onmouseout='postMouseOut($id)'";
@@ -627,16 +627,17 @@ class Feeds extends Handler_Protected {
}
$reply['content'] .= "<span id=\"CWRAP-$id\">";
- $reply['content'] .= $line["content"];
- $reply['content'] .= "</span>";
-/* $tmp_result = db_query($this->link, "SELECT always_display_enclosures FROM
- ttrss_feeds WHERE id = ".
- (($line['feed_id'] == null) ? $line['orig_feed_id'] :
- $line['feed_id'])." AND owner_uid = ".$_SESSION["uid"]);
+ if (!$expand_cdm) {
+ $reply['content'] .= "<span id=\"CENCW-$id\">";
+ $reply['content'] .= htmlspecialchars($line["content"]);
+ $reply['content'] .= "</span.";
+
+ } else {
+ $reply['content'] .= $line["content"];
+ }
- $always_display_enclosures = sql_bool_to_bool(db_fetch_result($tmp_result,
- 0, "always_display_enclosures")); */
+ $reply['content'] .= "</span>";
$always_display_enclosures = sql_bool_to_bool($line["always_display_enclosures"]);
@@ -945,6 +946,5 @@ class Feeds extends Handler_Protected {
return $reply;
}
-
}
?>