Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-33204 disable yui_combo slasharguments by default for now

  • Loading branch information...
commit 7953149e01768afbb01a8816fb0e7ead030ff0e1 1 parent 84e1e04
@skodak skodak authored
Showing with 6 additions and 1 deletion.
  1. +4 −0 config-dist.php
  2. +2 −1  lib/outputrequirementslib.php
View
4 config-dist.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
View
3  lib/outputrequirementslib.php
@@ -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");
Please sign in to comment.
Something went wrong with that request. Please try again.