summaryrefslogtreecommitdiffstats
path: root/system/helpers/url_helper.php
diff options
context:
space:
mode:
authorDerek Jones <derek.jones@ellislab.com>2009-02-02 19:50:38 +0100
committerDerek Jones <derek.jones@ellislab.com>2009-02-02 19:50:38 +0100
commit33559103ddf02648837c85ed72425ac06c06080c (patch)
treebe00fd757f97298f3e74a43c4eb067b729fb4af0 /system/helpers/url_helper.php
parentf1b721a3559e8eb95bc580a3f79c5c2e896c9932 (diff)
replaced all sizeof() in favor of count() - aliases are teh sux0r
Diffstat (limited to 'system/helpers/url_helper.php')
-rw-r--r--system/helpers/url_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/url_helper.php b/system/helpers/url_helper.php
index 9b449ea9e..6c3bc837a 100644
--- a/system/helpers/url_helper.php
+++ b/system/helpers/url_helper.php
@@ -382,7 +382,7 @@ if ( ! function_exists('auto_link'))
{
$pop = ($popup == TRUE) ? " target=\"_blank\" " : "";
- for ($i = 0; $i < sizeof($matches['0']); $i++)
+ for ($i = 0; $i < count($matches['0']); $i++)
{
$period = '';
if (preg_match("|\.$|", $matches['6'][$i]))
@@ -408,7 +408,7 @@ if ( ! function_exists('auto_link'))
{
if (preg_match_all("/([a-zA-Z0-9_\.\-\+Å]+)@([a-zA-Z0-9\-]+)\.([a-zA-Z0-9\-\.]*)/i", $str, $matches))
{
- for ($i = 0; $i < sizeof($matches['0']); $i++)
+ for ($i = 0; $i < count($matches['0']); $i++)
{
$period = '';
if (preg_match("|\.$|", $matches['3'][$i]))