summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2011-12-26 15:53:18 +0100
committerAndrey Andreev <narf@bofh.bg>2011-12-26 15:53:18 +0100
commit43aa8e4f66e0a109cfb80a8ea424edb04b9feecc (patch)
treeec9b17ed2b1edbf5eb1b77ccf98614e7078d9ecd
parent7dc8c442be1122f4fa71f7f53efe4d837b555f2f (diff)
Replace private with protected, so the class can be easily extended
-rw-r--r--system/libraries/Typography.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/system/libraries/Typography.php b/system/libraries/Typography.php
index 0f48f32ad..651ba7bff 100644
--- a/system/libraries/Typography.php
+++ b/system/libraries/Typography.php
@@ -31,7 +31,7 @@
* Typography Class
*
*
- * @access private
+ * @access protected
* @category Helpers
* @author EllisLab Dev Team
* @link http://codeigniter.com/user_guide/libraries/typography.html
@@ -322,11 +322,11 @@ class CI_Typography {
*
* Converts newline characters into either <p> tags or <br />
*
- * @access private
+ * @access protected
* @param string
* @return string
*/
- private function _format_newlines($str)
+ protected function _format_newlines($str)
{
if ($str == '' OR (strpos($str, "\n") === FALSE AND ! in_array($this->last_block_element, $this->inner_block_required)))
{
@@ -365,11 +365,11 @@ class CI_Typography {
* and we don't want double dashes converted to emdash entities, so they are marked with {@DD}
* likewise double spaces are converted to {@NBS} to prevent entity conversion
*
- * @access private
+ * @access protected
* @param array
* @return string
*/
- private function _protect_characters($match)
+ protected function _protect_characters($match)
{
return str_replace(array("'",'"','--',' '), array('{@SQ}', '{@DQ}', '{@DD}', '{@NBS}'), $match[0]);
}