]> git.mjollnir.org Git - moodle.git/commitdiff
pagelib MDL-19077 Fixed minor error in pagelib
authorsamhemelryk <samhemelryk>
Thu, 2 Jul 2009 07:29:08 +0000 (07:29 +0000)
committersamhemelryk <samhemelryk>
Thu, 2 Jul 2009 07:29:08 +0000 (07:29 +0000)
lib/pagelib.php

index 53c6447f45223384e22e3a9ff0bc8b3ed9f60321..1dab12fd9c848a753bb22907301c73ed5a893c21 100644 (file)
@@ -874,7 +874,7 @@ class moodle_page {
             debugging('Some code on this page is using the horrible legacy mechanism $CFG->stylesheets to include links to ' .
                     'extra stylesheets. This is deprecated. Please use $PAGE->requires->css(...) instead.', DEBUG_DEVELOPER);
             foreach ($CFG->stylesheets as $stylesheet) {
-                $this->page->requires->css($stylesheet, true);
+                $this->requires->css($stylesheet, true);
             }
         }