Skip to content

Commit d153dec

Browse files
committed
Fixing old method references in Typography class
1 parent 906fa8f commit d153dec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

system/Typography/Typography.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @license http://opensource.org/licenses/MIT MIT License
3636
* @link http://codeigniter.com
3737
* @since Version 3.0.0
38-
* @filesource
38+
* @filesource
3939
*/
4040

4141
/**
@@ -137,16 +137,16 @@ public function autoTypography(string $str, bool $reduce_linebreaks = false): st
137137
// not contain <pre> tags, and it keeps the PCRE patterns below simpler and faster
138138
if (strpos($str, '<pre') !== false)
139139
{
140-
$str = preg_replace_callback('#<pre.*?>.*?</pre>#si', [$this, '_protect_characters'], $str);
140+
$str = preg_replace_callback('#<pre.*?>.*?</pre>#si', [$this, 'protectCharacters'], $str);
141141
}
142142

143143
// Convert quotes within tags to temporary markers.
144-
$str = preg_replace_callback('#<.+?>#si', [$this, '_protect_characters'], $str);
144+
$str = preg_replace_callback('#<.+?>#si', [$this, 'protectCharacters'], $str);
145145

146146
// Do the same with braces if necessary
147147
if ($this->protectBracedQuotes === false)
148148
{
149-
$str = preg_replace_callback('#\{.+?\}#si', [$this, '_protect_characters'], $str);
149+
$str = preg_replace_callback('#\{.+?\}#si', [$this, 'protectCharacters'], $str);
150150
}
151151

152152
// Convert "ignore" tags to temporary marker. The parser splits out the string at every tag

0 commit comments

Comments
 (0)