Permalink
Browse files

mdl-27120 Fix static cache for backup_xml_transformer::register_link_…

…encoders()
  • Loading branch information...
1 parent 67bf694 commit 16bf868513341cd2efe3a9a694eb191f4b5a1ee6 @aolley aolley committed with Rajesh Taneja Sep 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 backup/moodle2/backup_xml_transformer.class.php
@@ -55,7 +55,7 @@ public function __construct($courseid) {
$this->unicoderegexp = @preg_match('/\pL/u', 'a'); // This will fail silently, returning false,
// if regexp libraries don't support unicode
// Register all the available content link encoders
- if (!empty($LINKS_ENCODERS_CACHE)) {
+ if (empty($LINKS_ENCODERS_CACHE)) {
$LINKS_ENCODERS_CACHE = $this->register_link_encoders();
}
$this->absolute_links_encoders = $LINKS_ENCODERS_CACHE;

0 comments on commit 16bf868

Please sign in to comment.