Index: lib/weblib.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/weblib.php,v retrieving revision 1.924 diff -u -r1.924 weblib.php --- lib/weblib.php 10 Aug 2007 10:37:30 -0000 1.924 +++ lib/weblib.php 10 Aug 2007 14:33:08 -0000 @@ -3008,14 +3008,20 @@ $CFG->footer = $CFG->themedir .'/'. $theme .'/footer.html'; /// Define stylesheet loading order - $CFG->stylesheets = array(); - if ($theme != 'standard') { /// The standard sheet is always loaded first - $CFG->stylesheets[] = $CFG->themewww.'/standard/styles.php'.$paramstring; + if (empty($USER->screenreader) || $USER->screenreader==0) { + $CFG->stylesheets = array(); + if ($theme != 'standard') { /// The standard sheet is always loaded first + $CFG->stylesheets[] = $CFG->themewww.'/standard/styles.php'.$paramstring; + } + if (!empty($THEME->parent)) { /// Parent stylesheets are loaded next + $CFG->stylesheets[] = $CFG->themewww.'/'.$THEME->parent.'/styles.php'.$paramstring; + } + $CFG->stylesheets[] = $CFG->themewww.'/'.$theme.'/styles.php'.$paramstring; + } else { + /// Only a single minimal stylesheet for screenreader users + $CFG->stylesheets = array($CFG->themewww.'/standard/styles_screenreader.css'); + $THEME->standardmetainclude = false; } - if (!empty($THEME->parent)) { /// Parent stylesheets are loaded next - $CFG->stylesheets[] = $CFG->themewww.'/'.$THEME->parent.'/styles.php'.$paramstring; - } - $CFG->stylesheets[] = $CFG->themewww.'/'.$theme.'/styles.php'.$paramstring; /// We have to change some URLs in styles if we are in a $HTTPSPAGEREQUIRED page if (!empty($HTTPSPAGEREQUIRED)) {