summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-07-31 03:13:51 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-07-31 03:13:51 -0400
commita2d8e4cf3efd97765405e4d51ecdc279b227072b (patch)
tree45274b86abd88a26ea161a4461bb8530ca03332d
parent37d769646b7754f37928f9ceb8b0a2a9eea58c6b (diff)
Previous commit comment fix
-rw-r--r--inc/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php
index 2d648df8..15037847 100644
--- a/inc/functions.php
+++ b/inc/functions.php
@@ -1463,7 +1463,7 @@ function markup(&$body, $track_cites = false) {
$query->bindValue(':id', $cite);
$query->execute() or error(db_error($query));
- // preg_replace is not multibyte-safe
+ // preg_match_all is not multibyte-safe
foreach ($matches as &$match) {
$match[1] = mb_strlen(substr($body_tmp, 0, $match[1]));
}
@@ -1496,7 +1496,7 @@ function markup(&$body, $track_cites = false) {
$_board = $matches[2][0];
$cite = @$matches[3][0];
- // preg_replace is not multibyte-safe
+ // preg_match_all is not multibyte-safe
foreach ($matches as &$match) {
$match[1] = mb_strlen(substr($body_tmp, 0, $match[1]));
}