From 1273d7ddeee92152898eaa5f2ac0edd533bd5913 Mon Sep 17 00:00:00 2001 From: skodak Date: Sat, 27 Oct 2007 22:01:39 +0000 Subject: [PATCH] support for styles.php in grade reports --- lib/weblib.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/weblib.php b/lib/weblib.php index 18c7c76b58..cfe80b4247 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -2957,6 +2957,16 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force } } + if (!isset($THEME->gradereportsheets) || $THEME->gradereportsheets) { // Search for styles.php in grade reports + if ($reports = get_list_of_plugins('grade/report')) { + foreach ($reports as $report) { + if (file_exists($CFG->dirroot.'/grade/report/'.$report.'/styles.php')) { + $files[] = array($CFG->dirroot, '/grade/report/'.$report.'/styles.php'); + } + } + } + } + if (!empty($THEME->langsheets)) { // Search for styles.php within the current language if (file_exists($CFG->dirroot.'/lang/'.$lang.'/styles.php')) { $files[] = array($CFG->dirroot, '/lang/'.$lang.'/styles.php'); -- 2.39.5