Skip to content

Commit

Permalink
Merge pull request #624 from ahilles107/fixes
Browse files Browse the repository at this point in the history
link service fix, missing pl language in text box
  • Loading branch information
Paweł Mikołajczuk committed Apr 7, 2014
2 parents fa26613 + c56715c commit b8a60cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions newscoop/js/tinymce/plugins/textbox/langs/pl.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// UK lang variables
tinyMCE.addI18n('en.textbox',{
textbox_desc : "Text Box",
textbox_title : "Text Box",
textbox_pagecode : "Wklej/Wpisz swój teks tutaj",
textbox_button_desc: "Wstaw"
});
8 changes: 5 additions & 3 deletions newscoop/library/Newscoop/Article/LinkService.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,11 @@ public function getSeo($article, array $fields)
break;

case 'topics':
$topics = \ArticleTopic::GetArticleTopics($article->getNumber());
foreach ($articleTopics as $topic) {
$seo[] = trim($topic->getName($article->getLanguageId()));
$articleTopics = \ArticleTopic::GetArticleTopics($article->getNumber());
if (is_array($articleTopics)) {
foreach ($articleTopics as $topic) {
$seo[] = trim($topic->getName($article->getLanguageId()));
}
}
break;
}
Expand Down

0 comments on commit b8a60cc

Please sign in to comment.