Skip to content

Commit

Permalink
MDL-48036 course: change multilang cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
schach authored and danpoltawski committed Nov 25, 2014
1 parent e629bd3 commit 000f148
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/coursecatlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,8 @@ public static function make_categories_list($requiredcapability = '', $excludeid

// Check if we cached the complete list of user-accessible category names ($baselist) or list of ids
// with requried cap ($thislist).
$basecachekey = 'catlist';
$currentlang = current_language();
$basecachekey = $currentlang . '_catlist';
$baselist = $coursecatcache->get($basecachekey);
$thislist = false;
$thiscachekey = null;
Expand Down

0 comments on commit 000f148

Please sign in to comment.