Skip to content

Commit

Permalink
Fix BC.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Mar 18, 2017
1 parent 6b2afc7 commit 4f491c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/Utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public static function cleanUrl($url, $headerRedirect = false) {
}

/**
* Remove http:// or other protocols from the link
* Removes http:// or other protocols from the link.
*
* @param string $url
* @param array $protocols Defaults to http and https. Pass empty array for all.
Expand Down
11 changes: 11 additions & 0 deletions src/View/Helper/TextHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,17 @@ public function minimizeUrl($url, $max = null, array $options = []) {
return $front . $placeholder . $end;
}

/**
* Removes http:// or other protocols from the link.
*
* @param string $url
* @param array $protocols Defaults to http and https. Pass empty array for all.
* @return string strippedUrl
*/
public function stripProtocol($url, $protocols = ['http', 'https']) {
return Utility::stripProtocol($url, $protocols);
}

/**
* Transforming int values into ordinal numbers (1st, 3rd, ...).
* When using HTML, you can use <sup>, as well.
Expand Down

0 comments on commit 4f491c8

Please sign in to comment.