Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue warning for $pageroot only when not command line. #449

Merged
merged 1 commit into from Dec 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion public_html/lists/admin/index.php
Expand Up @@ -684,7 +684,7 @@ function mb_strtolower($string)
Warn($GLOBALS['I18N']->get('You are trying to use PDF support without having FPDF loaded'));
}

if (WARN_ABOUT_PHP_SETTINGS) {
if (WARN_ABOUT_PHP_SETTINGS && !$GLOBALS['commandline']) {
if (strpos(getenv('REQUEST_URI'), $pageroot.'/admin') !== 0) {
Warn($GLOBALS['I18N']->get('The pageroot in your config does not match the current locationCheck your config file.'));
}
Expand Down