diff options
Diffstat (limited to 'model/Article.php')
-rw-r--r-- | model/Article.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/model/Article.php b/model/Article.php index bad6948..806c5f6 100644 --- a/model/Article.php +++ b/model/Article.php | |||
@@ -51,6 +51,12 @@ class Article | |||
51 | 51 | ||
52 | private function makeHtmlMiniImages($content) | 52 | private function makeHtmlMiniImages($content) |
53 | { | 53 | { |
54 | while(preg_match('#<img src=.*/images/.*>#', $content)) | ||
55 | { | ||
56 | $pattern = '#(<img src=.*/)(images)(/.*>)#'; | ||
57 | $content = preg_replace($pattern, '$1$2-mini$3', $content); | ||
58 | } | ||
59 | |||
54 | return $content; | 60 | return $content; |
55 | } | 61 | } |
56 | 62 | ||