mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-12 14:40:09 +01:00
Fix geshi warning
This commit is contained in:
parent
16fbc1b029
commit
3b772bb5ff
1 changed files with 3 additions and 2 deletions
|
@ -2959,6 +2959,7 @@ class GeSHi {
|
||||||
$next_comment_single_pos = $length;
|
$next_comment_single_pos = $length;
|
||||||
foreach ($this->language_data['COMMENT_SINGLE'] as $comment_key => $comment_mark) {
|
foreach ($this->language_data['COMMENT_SINGLE'] as $comment_key => $comment_mark) {
|
||||||
$match_i = false;
|
$match_i = false;
|
||||||
|
$case_sensitive_comments = (bool) @$this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS];
|
||||||
if (isset($comment_single_cache_per_key[$comment_key]) &&
|
if (isset($comment_single_cache_per_key[$comment_key]) &&
|
||||||
($comment_single_cache_per_key[$comment_key] >= $i ||
|
($comment_single_cache_per_key[$comment_key] >= $i ||
|
||||||
$comment_single_cache_per_key[$comment_key] === false)) {
|
$comment_single_cache_per_key[$comment_key] === false)) {
|
||||||
|
@ -2970,10 +2971,10 @@ class GeSHi {
|
||||||
$match_i = $comment_single_cache_per_key[$comment_key];
|
$match_i = $comment_single_cache_per_key[$comment_key];
|
||||||
} elseif (
|
} elseif (
|
||||||
// case sensitive comments
|
// case sensitive comments
|
||||||
($this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] &&
|
($case_sensitive_comments &&
|
||||||
($match_i = stripos($part, $comment_mark, $i)) !== false) ||
|
($match_i = stripos($part, $comment_mark, $i)) !== false) ||
|
||||||
// non case sensitive
|
// non case sensitive
|
||||||
(!$this->language_data['CASE_SENSITIVE'][GESHI_COMMENTS] &&
|
(!$case_sensitive_comments &&
|
||||||
(($match_i = strpos($part, $comment_mark, $i)) !== false))) {
|
(($match_i = strpos($part, $comment_mark, $i)) !== false))) {
|
||||||
$comment_single_cache_per_key[$comment_key] = $match_i;
|
$comment_single_cache_per_key[$comment_key] = $match_i;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue