Skip to content

Commit

Permalink
Make stringToURL a static function
Browse files Browse the repository at this point in the history
  • Loading branch information
samerton committed Oct 29, 2017
1 parent 91a9533 commit 4f511dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/classes/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public static function getSelfURL(){
}

// URL-ify a string
public function stringToURL($string = null){
public static function stringToURL($string = null){
if($string){
$string = preg_replace("/[^A-Za-z0-9 ]/", '', $string);
return Output::getClean(strtolower(urlencode(str_replace(' ', '-', htmlspecialchars_decode($string)))));
Expand Down

0 comments on commit 4f511dd

Please sign in to comment.