Skip to content
Snippets Groups Projects
Commit 45bcb089 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #23767: remove overkill that will be fixed by next cosmogramme run

parent 463673b2
Branches
Tags
5 merge requests!896Master,!893Master,!890Master,!889Hotline master,!881Hotline #23767 fix base url define in cosmogramme
......@@ -67,9 +67,6 @@ class Class_Url {
public function absoluteUrl($url_array_or_string = [], $name = null, $reset = false, $encode = true) {
$url = $this->prepare($url_array_or_string, $name, $reset, $encode);
$url = str_replace('BASE_URL/', '', $url);
if (preg_match('/http[s]?:\/\//', $url))
return $url;
......
......@@ -63,10 +63,4 @@ class UrlBaseUrlTest extends PHPUnit_Framework_TestCase {
'controller' => 'cms',
'action' => 'index']));
}
/** @test */
public function absoluteUrlShouldRemoveBASEURLString() {
$this->assertNotContains('BASE_URL', Class_Url::absolute('BASE_URL/userfiles/album/pic87.jpeg'));
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment