aboutsummaryrefslogtreecommitdiff
path: root/src/phinde/Helper.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2016-02-03 21:12:17 +0100
committerChristian Weiske <cweiske@cweiske.de>2016-02-03 21:12:17 +0100
commit88c741c09b664260f826ff947bfaab071ac70d05 (patch)
treeb2f7417aee5979d4bd994b929f71d518a3604aa0 /src/phinde/Helper.php
parentfab8cabe19ac99e3c8a95abcea3c0569b67045bb (diff)
downloadphinde-88c741c09b664260f826ff947bfaab071ac70d05.tar.gz
phinde-88c741c09b664260f826ff947bfaab071ac70d05.zip
add site search, highlighting
Diffstat (limited to 'src/phinde/Helper.php')
-rw-r--r--src/phinde/Helper.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/phinde/Helper.php b/src/phinde/Helper.php
index 4863961..0b98521 100644
--- a/src/phinde/Helper.php
+++ b/src/phinde/Helper.php
@@ -11,5 +11,14 @@ class Helper
}
return true;
}
+
+ public static function noSchema($url)
+ {
+ return str_replace(
+ array('http://', 'https://'),
+ '',
+ $url
+ );
+ }
}
?>