Removing $reduce_linebreaks in auto_typography helper. Fixes #1642
I researched this back to a commit by @derekjones but couldn't find any history on what the reason for it was or why it was even added.
Signed-off-by: Eric Barnes <eric@ericlbarnes.com>
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index af9d16a..9dbba06 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -65,11 +65,11 @@
* @param bool whether to reduce multiple instances of double newlines to two
* @return string
*/
- function auto_typography($str, $strip_js_event_handlers = TRUE, $reduce_linebreaks = FALSE)
+ function auto_typography($str, $reduce_linebreaks = FALSE)
{
$CI =& get_instance();
$CI->load->library('typography');
- return $CI->typography->auto_typography($str, $strip_js_event_handlers, $reduce_linebreaks);
+ return $CI->typography->auto_typography($str, $reduce_linebreaks);
}
}