Skip to content

Commit

Permalink
MDL-33204 disable yui_combo slasharguments by default for now
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jun 12, 2012
1 parent 84e1e04 commit 7953149
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions config-dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/outputrequirementslib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 7953149

Please sign in to comment.