Foren / National / Russian / Тех. поддержка / Баги в Siena 0.9.14

Uch
#37825 21. August 2013, 22:18

Пытался написать об ошибке Гитхабе, но редактор кушает тэги. По этому оставил там только заголовок: https://github.com/Cotonti/Cotonti/issues/1233.

Функция cot_cut_more не находит строку <hr class="more" />

Но если в строке 43:  $mpos = mb_strpos($html, '<hr class="more" />'); сделать небольшое исправление

$mpos = mb_strpos($html, '<hr class="more"'); , то все работает
--------------------------------------------------------------------------------------------------------
File page.functions.php
Line 34 - 59
Function cot_cut_more($html) does not work with <hr class="more" />

But it works with '<hr class="more"'
without '/>' at the end.

Line 43 must be: $mpos = mb_strpos($html, '<hr class="more"');
instead of
$mpos = mb_strpos($html, '<hr class="more" />');