@@ -11,13 +11,16 @@ |
||
| 11 | 11 | { |
| 12 | 12 | $globals = $env->getGlobals(); |
| 13 | 13 | |
| 14 | - if ($assetPath instanceof JailObject) { |
|
| 14 | + if ($assetPath instanceof JailObject) |
|
| 15 | + { |
|
| 15 | 16 | $assetPath = $assetPath->getPermalink(); |
| 16 | 17 | } |
| 17 | - else if (is_array($assetPath)) { |
|
| 18 | + else if (is_array($assetPath)) |
|
| 19 | + { |
|
| 18 | 20 | $assetPath = $assetPath['permalink']; |
| 19 | 21 | } |
| 20 | - else if (is_null($assetPath)) { |
|
| 22 | + else if (is_null($assetPath)) |
|
| 23 | + { |
|
| 21 | 24 | $assetPath = '/'; |
| 22 | 25 | } |
| 23 | 26 | |