Skip to content

Commit 5d057d7

Browse files
committed
Merge pull request #15 from rlerdorf/patch-1
I think your meant to use is_readable() here
2 parents 64c9d5c + 4ce81f2 commit 5d057d7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

krumo/class.krumo.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
//////////////////////////////////////////////////////////////////////////////
1717

18-
/**
19-
* backward compatibility: the DIR_SEP constant isn't used anymore
20-
*/
21-
if(!defined('DIR_SEP')) {
22-
define('DIR_SEP', DIRECTORY_SEPARATOR);
18+
/**
19+
* backward compatibility: the DIR_SEP constant isn't used anymore
20+
*/
21+
if(!defined('DIR_SEP')) {
22+
define('DIR_SEP', DIRECTORY_SEPARATOR);
2323
}
2424
/**
2525
* backward compatibility: the PATH_SEPARATOR constant is availble since 4.3.0RC2
@@ -30,10 +30,10 @@
3030

3131
// -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
3232

33-
/**
33+
/**
3434
* Set the KRUMO_DIR constant up with the absolute path to Krumo files. If it is
3535
* not defined, include_path will be used. Set KRUMO_DIR only if any other module
36-
* or application has not already set it up.
36+
* or application has not already set it up.
3737
*/
3838
if (!defined('KRUMO_DIR')) {
3939
define('KRUMO_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR);
@@ -274,7 +274,7 @@
274274
return false;
275275
}
276276

277-
if (!readable(get_cfg_var('cfg_file_path'))) {
277+
if (!is_readable(get_cfg_var('cfg_file_path'))) {
278278
return false;
279279
}
280280

@@ -1301,4 +1301,4 @@
13011301

13021302
//////////////////////////////////////////////////////////////////////////////
13031303

1304-
?>
1304+
?>

0 commit comments

Comments
 (0)