Pārlūkot izejas kodu

Fix ZF-8840: Zend_Tool's layout provider incorrectly quotes the ini file config param

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20349 44c647ce-9c0f-0410-b52a-842ac1e357ba
rob 16 gadi atpakaļ
vecāks
revīzija
0804bf4e2b
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      library/Zend/Tool/Project/Provider/Layout.php

+ 1 - 3
library/Zend/Tool/Project/Provider/Layout.php

@@ -77,12 +77,10 @@ class Zend_Tool_Project_Provider_Layout extends Zend_Tool_Project_Provider_Abstr
         
         $layoutPath = 'APPLICATION_PATH "/layouts/scripts/"';
         
-        $quoteValue = (preg_match('#"\'#', $layoutPath)) ? false : true;
-        
         if ($this->_registry->getRequest()->isPretend()) {
             $this->_registry->getResponse()->appendContent('Would add "resources.layout.layoutPath" key to the application config file.');
         } else {
-            $applicationConfigResource->addStringItem('resources.layout.layoutPath', $layoutPath, 'production', $quoteValue);
+            $applicationConfigResource->addStringItem('resources.layout.layoutPath', $layoutPath, 'production', false);
             $applicationConfigResource->create(); 
             
             $layoutScriptFile = self::createResource($profile);