Browse files

ucwordsing all publishers

  • Loading branch information...
1 parent 2e7c7d4 commit fdc4c67df05e6cdbc734534162d526add6059575 @rf rf committed Mar 24, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 application/models/parsely_articles.php
View
8 application/models/parsely_articles.php
@@ -14,8 +14,14 @@ function get ($topics) {
foreach ($topics as $topic) {
$data = $this->simon_call($topic);
+ $ret = array();
- $return[$topic] = $data;
+ foreach ($data as $article) {
+ $article['publisher'] = ucwords($article['publisher']);
+ $ret[] = $article;
+ }
+
+ $return[$topic] = $ret;
}
return $return;

0 comments on commit fdc4c67

Please sign in to comment.