rabin преди 2 години
родител
ревизия
aaeb945947
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Database.php

+ 1 - 1
src/Database.php

@@ -2418,7 +2418,7 @@ class Database
                                 $text = str_replace('<em class="dever_highlight">', '<font color="red" class="dever_highlight">', $text);
                                 $text = str_replace('</em>', '</font>', $text);
                             } else {
-                                $text = preg_replace('/('.$high[$ki].')/i', '<font color="red" class="dever_highlight">${1}</font>', $text);
+                                $text = preg_replace('/('.$high[$ki].')/i', '<font color="red" class="dever_highlight">${1}</font>', $text, 1);
                             }
                         }