diff options
| author | 2015-07-14 00:11:34 +0200 | |
|---|---|---|
| committer | 2015-07-14 00:11:34 +0200 | |
| commit | 9cc0ef231c985da0f16c64eb11f8bb9515cc27c5 (patch) | |
| tree | ae7c9b259fbef0ec0b9057c38c65362f3f3f8a78 /lib | |
| parent | 10deab004dcde9354a9c14bd747310dbf37c89f0 (diff) | |
| parent | 241086fa672226cf799a82daad364fb82272da3b (diff) | |
Merge pull request #902 from marienfressinaud/862-fix-extension-broken-links
Fix broken links for extension script/style files
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Extension.php | 2 | ||||
| -rw-r--r-- | lib/Minz/Url.php | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Minz/Extension.php b/lib/Minz/Extension.php index d7ee8fe81..78b8a2725 100644 --- a/lib/Minz/Extension.php +++ b/lib/Minz/Extension.php @@ -168,7 +168,7 @@ class Minz_Extension { $url = '/ext.php?f=' . $file_name_url . '&t=' . $type . '&' . $mtime; - return Minz_Url::display($url); + return Minz_Url::display($url, 'php'); } /** diff --git a/lib/Minz/Url.php b/lib/Minz/Url.php index 879077d0f..a2809257d 100644 --- a/lib/Minz/Url.php +++ b/lib/Minz/Url.php @@ -31,8 +31,10 @@ class Minz_Url { if ($isArray) { $url_string .= self::printUri($url, $encodage); - } else { + } elseif ($encodage === 'html') { $url_string = Minz_Helper::htmlspecialchars_utf8($url_string . $url); + } else { + $url_string .= $url; } return $url_string; |
