NEW preg_math - предложения
This commit is contained in:
parent
76e6f8cca9
commit
c1588c2c4f
|
|
@ -116,7 +116,8 @@ class PageController extends Controller
|
||||||
$point->categoryIcon = $categories[$point->categoryId]['icon'];
|
$point->categoryIcon = $categories[$point->categoryId]['icon'];
|
||||||
$point->categoryName = $categories[$point->categoryId]['name'];
|
$point->categoryName = $categories[$point->categoryId]['name'];
|
||||||
$point->descriptionHtml = Helper::replaceLinks($point->descriptionHtml);
|
$point->descriptionHtml = Helper::replaceLinks($point->descriptionHtml);
|
||||||
preg_match_all("/.*?(([.?!](?:\s|$))|$)/s", $point->descriptionHtml, $items);
|
// preg_match_all("/.*?(([.?!](?:\s|$))|$)/s", $point->descriptionHtml, $items);
|
||||||
|
preg_match_all("/.*?((([^.?!\s]{3,}?)[.?!](?:\s|$))|$)/s", $point->descriptionHtml, $items);
|
||||||
$point->inFavorites = Favorite::model()->checkIsMy($pointId);
|
$point->inFavorites = Favorite::model()->checkIsMy($pointId);
|
||||||
$point->iLike = Like::model()->checkIsMy($pointId);
|
$point->iLike = Like::model()->checkIsMy($pointId);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue