]> git.wh0rd.org Git - tt-rss.git/commitdiff
lang: default to 'en'
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 31 Jul 2013 07:57:11 +0000 (11:57 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 31 Jul 2013 07:57:11 +0000 (11:57 +0400)
classes/feeds.php
include/functions.php

index 920bf29f5c7e8414b8e4236c1f61beb02ebd6e7b..0849a7a8a915c33a18e332c437c61c375acbb199 100644 (file)
@@ -621,6 +621,8 @@ class Feeds extends Handler_Protected {
                                        }
                                        $reply['content'] .= "</div>";
 
+                                       if (!$line['lang']) $line['lang'] = 'en';
+
                                        $reply['content'] .= "<div class=\"cdmContentInner\" lang=\"".$line['lang']."\">";
 
                        if ($line["orig_feed_id"]) {
index 9d14aae7ad58915cc3fc47ecf9b2a99057c42366..deeb53bf10262dc3bd654c16dac66eb07bccfe71 100644 (file)
                                }
                        $rv['content'] .= "</div>";
 
+                       if (!$line['lang']) $line['lang'] = 'en';
+
                        $rv['content'] .= "<div class=\"postContent\" lang=\"".$line['lang']."\">";
 
                        $rv['content'] .= $line["content"];