@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | $this->set_keywords($this->get_post_keywords()); |
48 | 48 | $this->set_author(self::$AUTHOR); |
49 | 49 | |
50 | - $photo = Content::instance('FetchFirstPhoto', $this->post->body)->activate(true); |
|
51 | - $photo = preg_match('/^<img src="([a-z-:\.\/]+)" [^>]+>$/', $photo, $matches); |
|
52 | - $this->set_head('thumbnail', $matches[1]); |
|
50 | + $photo = Content::instance('FetchFirstPhoto', $this->post->body)->activate(true); |
|
51 | + $photo = preg_match('/^<img src="([a-z-:\.\/]+)" [^>]+>$/', $photo, $matches); |
|
52 | + $this->set_head('thumbnail', $matches[1]); |
|
53 | 53 | |
54 | 54 | if (array_key_exists($this->post->id, self::$DEPRECATED_BLOGS)) { |
55 | 55 | $log_id = self::$DEPRECATED_BLOGS[$this->post->id]; |
@@ -123,13 +123,13 @@ discard block |
||
123 | 123 | |
124 | 124 | $post = new stdclass(); |
125 | 125 | |
126 | - if (strpos($post_row['title'], 'Rainy Supe Loop') === 0) { |
|
127 | - $title = $post_row['title']; |
|
128 | - $title = explode(':', $title); |
|
129 | - $title = array_pop($title); |
|
130 | - $title = trim($title); |
|
131 | - $post->title = $title; |
|
132 | - } else if (strpos($post_row['title'], 'Isle Royale') === 0) { |
|
126 | + if (strpos($post_row['title'], 'Rainy Supe Loop') === 0) { |
|
127 | + $title = $post_row['title']; |
|
128 | + $title = explode(':', $title); |
|
129 | + $title = array_pop($title); |
|
130 | + $title = trim($title); |
|
131 | + $post->title = $title; |
|
132 | + } else if (strpos($post_row['title'], 'Isle Royale') === 0) { |
|
133 | 133 | $title = $post_row['title']; |
134 | 134 | $title = explode(',', $title); |
135 | 135 | $title = array_pop($title); |
@@ -160,12 +160,12 @@ discard block |
||
160 | 160 | private $series_posts; |
161 | 161 | private function fetch_series_posts() |
162 | 162 | { |
163 | - if(!isset($this->series_posts)) { |
|
164 | - global $container; |
|
165 | - $repository = new Jacobemerick\Web\Domain\Blog\Series\MysqlSeriesRepository($container['db_connection_locator']); |
|
166 | - $this->series_posts = $repository->getSeriesForPost($this->post->id); |
|
167 | - } |
|
168 | - return $this->series_posts; |
|
163 | + if(!isset($this->series_posts)) { |
|
164 | + global $container; |
|
165 | + $repository = new Jacobemerick\Web\Domain\Blog\Series\MysqlSeriesRepository($container['db_connection_locator']); |
|
166 | + $this->series_posts = $repository->getSeriesForPost($this->post->id); |
|
167 | + } |
|
168 | + return $this->series_posts; |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | private function get_related_posts() |