mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Supporting full urls on css/js/image url constants
This commit is contained in:
parent
f34388c53a
commit
c0212a0454
1 changed files with 3 additions and 0 deletions
|
@ -322,6 +322,9 @@ class Helper extends Object {
|
||||||
) {
|
) {
|
||||||
$path .= $options['ext'];
|
$path .= $options['ext'];
|
||||||
}
|
}
|
||||||
|
if (strpos($path, '://') !== false) {
|
||||||
|
return $path;
|
||||||
|
}
|
||||||
if (isset($plugin)) {
|
if (isset($plugin)) {
|
||||||
$path = Inflector::underscore($plugin) . '/' . $path;
|
$path = Inflector::underscore($plugin) . '/' . $path;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue