diff options
author | justauser <[email protected]> | 2013-06-27 12:01:57 -0400 |
---|---|---|
committer | justauser <[email protected]> | 2013-06-27 12:01:57 -0400 |
commit | 0708046b4f0c3f430258f561dbc1a51ed5d92888 (patch) | |
tree | 5cb91240739f0bd838a0cfd495abfa20f5cacbec /classes | |
parent | 7171f32dc5ace4f36e1e70605ae96ebdbdf25c4f (diff) |
change for HOOK_QUERY_HEADLINES. See example for details.
Diffstat (limited to 'classes')
-rw-r--r-- | classes/feeds.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/classes/feeds.php b/classes/feeds.php index 85276a4b1..409824f96 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -363,15 +363,12 @@ class Feeds extends Handler_Protected { $date_entered_fmt = T_sprintf("Imported at %s", make_local_datetime($line["date_entered"], false)); -# if (get_pref('SHOW_CONTENT_PREVIEW') ) { -# if(isset($line["modified_preview"])) -# $content_preview = strip_tags($line["content_preview"]); -# else -# $content_preview = truncate_string(strip_tags($line["content_preview"]), -# 250); - if (get_pref('SHOW_CONTENT_PREVIEW')) { - $content_preview = " — " . truncate_string(strip_tags($line["content_preview"]), - 250); + if (get_pref('SHOW_CONTENT_PREVIEW') ) { + if(isset($line["modified_preview"])) + $content_preview = " — " . strip_tags($line["content_preview"]); + else + $content_preview = " — " . truncate_string(strip_tags($line["content_preview"]), + 250); } $score = $line["score"]; |