diff --git a/ground/controllers/JsonController.php b/ground/controllers/JsonController.php index 6d51054..15765df 100644 --- a/ground/controllers/JsonController.php +++ b/ground/controllers/JsonController.php @@ -429,7 +429,7 @@ class JsonController extends Controller } self::renderPartial('modals/article.php', array( 'title' => $article->title, - 'text' => $article->text, + 'text' => $article->html, )); } } @@ -443,7 +443,7 @@ class JsonController extends Controller } self::renderPartial('modals/pointAgreement.php', array( 'title' => $article->title, - 'text' => $article->text, + 'text' => $article->html, )); } diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index 79c6d6d..0947849 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -193,10 +193,8 @@ class PageController extends Controller } App::setConfig('title', $article->title . ' - wikipoints.ru'); - $article->text = Helper::replaceLinks($article->text, 'html'); - $article->text = Helper::replaceImgs($article->text, 'html'); - $article->text = Markdown::processing($article->text); - $article->text = nl2br($article->text); + $article->html = Helper::replaceLinks($article->html, 'html'); + $article->html = Helper::replaceImgs($article->html, 'html'); self::render('article.php', array( 'article' => $article, diff --git a/ground/views/article.php b/ground/views/article.php index 66b1b0e..e166354 100644 --- a/ground/views/article.php +++ b/ground/views/article.php @@ -8,9 +8,7 @@
- text; - ?> + html; ?>