File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 31
31
$ secret = '' ;
32
32
33
33
// Copy the config.php.dist file to config.php and update it with your keys to run the examples
34
- if (is_readable (__DIR__ . '/config.php ' )) {
34
+ if ($ siteKey == '' && is_readable (__DIR__ . '/config.php ' )) {
35
35
$ config = include __DIR__ . '/config.php ' ;
36
36
$ siteKey = $ config ['v2-standard ' ]['site ' ];
37
37
$ secret = $ config ['v2-standard ' ]['secret ' ];
Original file line number Diff line number Diff line change 31
31
$ secret = '' ;
32
32
33
33
// Copy the config.php.dist file to config.php and update it with your keys to run the examples
34
- if (is_readable (__DIR__ . '/config.php ' )) {
34
+ if ($ siteKey == '' && is_readable (__DIR__ . '/config.php ' )) {
35
35
$ config = include __DIR__ . '/config.php ' ;
36
36
$ siteKey = $ config ['v2-invisible ' ]['site ' ];
37
37
$ secret = $ config ['v2-invisible ' ]['secret ' ];
Original file line number Diff line number Diff line change 31
31
$ secret = '' ;
32
32
33
33
// Copy the config.php.dist file to config.php and update it with your keys to run the examples
34
- if (is_readable (__DIR__ . '/config.php ' )) {
34
+ if ($ siteKey == '' && is_readable (__DIR__ . '/config.php ' )) {
35
35
$ config = include __DIR__ . '/config.php ' ;
36
36
$ siteKey = $ config ['v3 ' ]['site ' ];
37
37
$ secret = $ config ['v3 ' ]['secret ' ];
Original file line number Diff line number Diff line change 31
31
$ secret = '' ;
32
32
33
33
// Copy the config.php.dist file to config.php and update it with your keys to run the examples
34
- if (is_readable (__DIR__ . '/config.php ' )) {
34
+ if ($ siteKey == '' && is_readable (__DIR__ . '/config.php ' )) {
35
35
$ config = include __DIR__ . '/config.php ' ;
36
36
$ siteKey = $ config ['v3 ' ]['site ' ];
37
37
$ secret = $ config ['v3 ' ]['secret ' ];
You can’t perform that action at this time.
0 commit comments