]> git.wh0rd.org Git - tt-rss.git/commitdiff
change for HOOK_QUERY_HEADLINES. See example for details.
authorjustauser <justausr@hotmail.com>
Thu, 27 Jun 2013 16:01:57 +0000 (12:01 -0400)
committerjustauser <justausr@hotmail.com>
Thu, 27 Jun 2013 16:01:57 +0000 (12:01 -0400)
classes/feeds.php

index 85276a4b1d1f18c5398f2e2f2d901f0a75ec2b33..409824f963cfc11f9de773de8cfd432f135120a4 100644 (file)
@@ -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 = " &mdash; " . truncate_string(strip_tags($line["content_preview"]),
-                                               250);
+                               if (get_pref('SHOW_CONTENT_PREVIEW') ) {
+                                       if(isset($line["modified_preview"]))
+                                               $content_preview =  " &mdash; " .  strip_tags($line["content_preview"]);
+                                       else
+                                               $content_preview =  " &mdash; " . truncate_string(strip_tags($line["content_preview"]),
+                                                       250);           
                                }
 
                                $score = $line["score"];