Browse Source

Fix path for loading config files from plugin.

ADmad 11 years ago
parent
commit
4eae13f01a
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/Configure/Engine/IniConfig.php
  2. 1 1
      src/Configure/Engine/PhpConfig.php

+ 2 - 2
src/Configure/Engine/IniConfig.php

@@ -183,7 +183,7 @@ class IniConfig implements ConfigEngineInterface {
 /**
  * Converts a value into the ini equivalent
  *
- * @param mixed $val Value to export.
+ * @param mixed $value Value to export.
  * @return string String value for ini file.
  */
 	protected function _value($value) {
@@ -220,7 +220,7 @@ class IniConfig implements ConfigEngineInterface {
 		}
 
 		if ($plugin) {
-			$file = App::pluginPath($plugin) . 'Config' . DS . $key;
+			$file = App::pluginPath($plugin) . 'src' . DS . 'Config' . DS . $key;
 		} else {
 			$file = $this->_path . $key;
 		}

+ 1 - 1
src/Configure/Engine/PhpConfig.php

@@ -108,7 +108,7 @@ class PhpConfig implements ConfigEngineInterface {
 		$key .= '.php';
 
 		if ($plugin) {
-			$file = App::pluginPath($plugin) . 'Config' . DS . $key;
+			$file = App::pluginPath($plugin) . 'src' . DS . 'Config' . DS . $key;
 		} else {
 			$file = $this->_path . $key;
 		}