diff --git a/externallinks.php b/externallinks.php index 3ab03b0..8225fb9 100644 --- a/externallinks.php +++ b/externallinks.php @@ -11,11 +11,11 @@ class YellowExternallinks { } // Insert script into header - public function onExtra($name) { - $output = ""; + public function onParsePageExtra($page, $name) { + $output = null; if ($name == "header") { - $location = $this->yellow->system->get("coreServerBase") . "system/workers/externallinks.js"; - $output .= "\n"; + $assetLocation = $this->yellow->system->get("coreServerBase") . $this->yellow->system->get("coreAssetLocation"); + $output .= "\n"; } return $output; }