From 4e7249fd8397f0282877263c640f2275607e3293 Mon Sep 17 00:00:00 2001 From: Bert Oost Date: Wed, 13 Aug 2014 17:15:44 +0200 Subject: [PATCH] Update create.class.php Wrong usage of $linkedResources... --- .../babel/processors/mgr/translation/create.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/components/babel/processors/mgr/translation/create.class.php b/core/components/babel/processors/mgr/translation/create.class.php index 3452587..6616ced 100755 --- a/core/components/babel/processors/mgr/translation/create.class.php +++ b/core/components/babel/processors/mgr/translation/create.class.php @@ -20,7 +20,7 @@ public function create() { /* error: translation should be created in the same context */ return $this->failure($this->modx->lexicon('error.translation_in_same_context')); } - if(isset($linkedResources[$this->contextKey])) { + if(isset($this->linkedResources[$this->contextKey])) { /* error: there does already exist a translation */ $errorParameter = array('context' => $this->contextKey); return $this->modx->error->failure($this->modx->lexicon('error.translation_already_exists', $errorParameter));