@@ 615-621 (lines=7) @@ | ||
612 | */ |
|
613 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
614 | if ($type === "style") { |
|
615 | if (!\in_array($path, self::$styles)) { |
|
616 | if ($prepend === true) { |
|
617 | \array_unshift(self::$styles, $path); |
|
618 | } else { |
|
619 | self::$styles[] = $path; |
|
620 | } |
|
621 | } |
|
622 | } elseif ($type === "script") { |
|
623 | if (!\in_array($path, self::$scripts)) { |
|
624 | if ($prepend === true) { |
|
@@ 622-630 (lines=9) @@ | ||
619 | self::$styles[] = $path; |
|
620 | } |
|
621 | } |
|
622 | } elseif ($type === "script") { |
|
623 | if (!\in_array($path, self::$scripts)) { |
|
624 | if ($prepend === true) { |
|
625 | \array_unshift(self::$scripts, $path); |
|
626 | } else { |
|
627 | self::$scripts [] = $path; |
|
628 | } |
|
629 | } |
|
630 | } |
|
631 | } |
|
632 | ||
633 | /** |