From 9a12f49aea666d07ed020462925b61311b3e32cf Mon Sep 17 00:00:00 2001 From: Frode Petterson Date: Tue, 9 Jul 2013 14:43:22 +0200 Subject: [PATCH] OPPG-413: Added this. --- h5p.classes.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/h5p.classes.php b/h5p.classes.php index 5c4d17e..6f036c0 100644 --- a/h5p.classes.php +++ b/h5p.classes.php @@ -1393,14 +1393,14 @@ class H5PContentValidator { public function validateLibrary(&$value, $semantics) { // Check if provided library is within allowed options if (in_array($value->library, $semantics->options)) { - if (isset($semanticsCache[$value->library])) { - $librarySemantics = $semanticsCache[$value->library]; + if (isset($this->semanticsCache[$value->library])) { + $librarySemantics = $this->semanticsCache[$value->library]; } else { $libspec = $this->h5pC->libraryFromString($value->library); $library = $this->h5pF->loadLibrary($libspec['machineName'], $libspec['majorVersion'], $libspec['minorVersion']); $librarySemantics = json_decode($library['semantics']); - $semanticsCache[$value->library] = $librarySemantics; + $this->semanticsCache[$value->library] = $librarySemantics; } $this->validateBySemantics($value->params, $librarySemantics); }