Navigation Menu

Skip to content

Commit

Permalink
Update lib/Cake/Configure/IniReader.php
Browse files Browse the repository at this point in the history
Updated docblock and set NULL as the default value of $path
  • Loading branch information
schrolli committed Sep 2, 2012
1 parent a4c382b commit 83c05c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Configure/IniReader.php
Expand Up @@ -72,11 +72,11 @@ class IniReader implements ConfigReaderInterface {
* Build and construct a new ini file parser. The parser can be used to read
* ini files that are on the filesystem.
*
* @param string $path Path to load ini config files from.
* @param string $path Path to load ini config files from. Defaults to APP . 'Config' . DS
* @param string $section Only get one section, leave null to parse and fetch
* all sections in the ini file.
*/
public function __construct($path, $section = null) {
public function __construct($path = null, $section = null) {
if (!$path) {
$path = APP . 'Config' . DS;
}
Expand Down

0 comments on commit 83c05c2

Please sign in to comment.