Browse Source

a couple of find/replace oversights

AD7six 15 years ago
parent
commit
ef684c3d94
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lib/Cake/View/Helper/HtmlHelper.php

+ 4 - 1
lib/Cake/View/Helper/HtmlHelper.php

@@ -928,7 +928,10 @@ class HtmlHelper extends AppHelper {
  * @param string $path Path with config file
  * @return mixed False to error or loaded configs
  */
-	public function loadConfig($configFile, $path = APP . 'Config' . DS) {
+	public function loadConfig($configFile, $path = null) {
+		if (!$path) {
+			$path = APP . 'Config' . DS;
+		}
 		$file = null;
 		$reader = 'php';