diff --git a/code/dataobjects/UserTemplate.php b/code/dataobjects/UserTemplate.php index 6718074..5bf6689 100644 --- a/code/dataobjects/UserTemplate.php +++ b/code/dataobjects/UserTemplate.php @@ -171,14 +171,14 @@ public function includeRequirements() { $obj = $this->CustomCSSFiles(); if ($obj) { foreach ($obj as $file) { - Requirements::css($file->Filename); + Requirements::css($file->getURL()); } } $obj = $this->CustomJSFiles(); if ($obj) { foreach ($obj as $file) { - Requirements::javascript($file->Filename); + Requirements::javascript($file->getURL()); } }