From f235497aab154d7d782b3f372e712315f4b39df2 Mon Sep 17 00:00:00 2001 From: sminnee Date: Mon, 10 Nov 2008 01:04:45 +0000 Subject: [PATCH] Re-added Requirements calls to Page.php for older theme compatability git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@65504 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- mysite/code/Page.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mysite/code/Page.php b/mysite/code/Page.php index fb52483..1034277 100755 --- a/mysite/code/Page.php +++ b/mysite/code/Page.php @@ -13,6 +13,12 @@ class Page_Controller extends ContentController { public function init() { parent::init(); + + // Note: you should use <% require %> tags inside your templates instead of putting Requirements calls here. However + // these are included so that our older themes still work + Requirements::themedCSS("layout"); + Requirements::themedCSS("typography"); + Requirements::themedCSS("form"); } }