| @@ 632-638 (lines=7) @@ | ||
| 629 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 630 | ||
| 631 | if ($type === "style") { |
|
| 632 | if (!in_array($path, self::$styles)) { |
|
| 633 | if ($prepend === true) { |
|
| 634 | array_unshift ( self::$styles, $path ); |
|
| 635 | } else { |
|
| 636 | self::$styles[] = $path; |
|
| 637 | } |
|
| 638 | } |
|
| 639 | } elseif ($type === "script") { |
|
| 640 | if (!in_array($path, self::$scripts)) { |
|
| 641 | if ($prepend === true) { |
|
| @@ 639-647 (lines=9) @@ | ||
| 636 | self::$styles[] = $path; |
|
| 637 | } |
|
| 638 | } |
|
| 639 | } elseif ($type === "script") { |
|
| 640 | if (!in_array($path, self::$scripts)) { |
|
| 641 | if ($prepend === true) { |
|
| 642 | array_unshift ( self::$scripts, $path ); |
|
| 643 | } else { |
|
| 644 | self::$scripts [] = $path; |
|
| 645 | } |
|
| 646 | } |
|
| 647 | } |
|
| 648 | } |
|
| 649 | ||
| 650 | /** |
|