| @@ 647-653 (lines=7) @@ | ||
| 644 | private static function addExternalResource($application, $prepend, $path, $type = "script") { |
|
| 645 | ||
| 646 | if ($type === "style") { |
|
| 647 | if (!in_array($path, self::$styles)) { |
|
| 648 | if ($prepend === true) { |
|
| 649 | array_unshift ( self::$styles, $path ); |
|
| 650 | } else { |
|
| 651 | self::$styles[] = $path; |
|
| 652 | } |
|
| 653 | } |
|
| 654 | } elseif ($type === "script") { |
|
| 655 | if (!in_array($path, self::$scripts)) { |
|
| 656 | if ($prepend === true) { |
|
| @@ 654-662 (lines=9) @@ | ||
| 651 | self::$styles[] = $path; |
|
| 652 | } |
|
| 653 | } |
|
| 654 | } elseif ($type === "script") { |
|
| 655 | if (!in_array($path, self::$scripts)) { |
|
| 656 | if ($prepend === true) { |
|
| 657 | array_unshift ( self::$scripts, $path ); |
|
| 658 | } else { |
|
| 659 | self::$scripts [] = $path; |
|
| 660 | } |
|
| 661 | } |
|
| 662 | } |
|
| 663 | } |
|
| 664 | ||
| 665 | /** |
|