Skip to content
Permalink
Browse files

Merge branch 'w24_MDL-33636_m23_yuislash' of git://github.com/skodak/…

…moodle
  • Loading branch information...
stronk7 committed Jun 12, 2012
2 parents 8409bd5 + 7953149 commit e47275fa0d0d46d19fab3adcbc954a299d9b5d45
Showing with 7 additions and 2 deletions.
  1. +4 −0 config-dist.php
  2. +2 −1 lib/outputrequirementslib.php
  3. +1 −1 theme/yui_combo.php
@@ -234,6 +234,10 @@
// '/filedir' => '/var/www/moodle/filedir', // for custom $CFG->filedir locations
// );
//
// YUI caching may be sometimes improved by slasharguments:
// $CFG->yuislasharguments = 1;
// Some servers may need a special rewrite rule to work around internal path length limitations:
// RewriteRule (^.*/theme/yui_combo\.php)(/.*) $1?file=$2
//
//
// This setting will prevent the 'My Courses' page being displayed when a student
@@ -152,7 +152,8 @@ class page_requirements_manager {
public function __construct() {
global $CFG;
$sep = empty($CFG->slasharguments) ? '?' : '/';
// You may need to set up URL rewrite rule because oversized URLs might not be allowed by web server.
$sep = empty($CFG->yuislasharguments) ? '?' : '/';
require_once("$CFG->libdir/yui/phploader/phploader/loader.php");
@@ -166,7 +166,7 @@ function combo_send_cached($content, $mimetype, $etag, $lastmodified) {
header('Last-Modified: '. gmdate('D, d M Y H:i:s', $lastmodified) .' GMT');
header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .' GMT');
header('Pragma: ');
header('Cache-Control: max-age='.$lifetime);
header('Cache-Control: public, max-age='.$lifetime);
header('Accept-Ranges: none');
header('Content-Type: '.$mimetype);
header('Etag: '.$etag);

0 comments on commit e47275f

Please sign in to comment.
You can’t perform that action at this time.