@@ 37-43 (lines=7) @@ | ||
34 | return $this; |
|
35 | } |
|
36 | ||
37 | if (defined("ANAX_APP_PATH")) { |
|
38 | $path = ANAX_APP_PATH . "/config/$what"; |
|
39 | if (is_readable($path)) { |
|
40 | $this->config = require $path; |
|
41 | return $this; |
|
42 | } |
|
43 | } |
|
44 | ||
45 | if (defined("ANAX_INSTALL_PATH")) { |
|
46 | $path = ANAX_INSTALL_PATH . "/config/$what"; |
|
@@ 45-51 (lines=7) @@ | ||
42 | } |
|
43 | } |
|
44 | ||
45 | if (defined("ANAX_INSTALL_PATH")) { |
|
46 | $path = ANAX_INSTALL_PATH . "/config/$what"; |
|
47 | if (is_readable($path)) { |
|
48 | $this->config = require $path; |
|
49 | return $this; |
|
50 | } |
|
51 | } |
|
52 | ||
53 | if (is_readable($what)) { |
|
54 | $this->config = require $what; |