Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ucwordsing all publishers

  • Loading branch information...
commit fdc4c67df05e6cdbc734534162d526add6059575 1 parent 2e7c7d4
Russ Frank rf authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 application/models/parsely_articles.php
8 application/models/parsely_articles.php
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.