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