- Made Drupal report an error when magic_quotes are disabled.
parent
728125035c
commit
26e0b9b75c
|
@ -50,6 +50,12 @@ function throttle($type, $rate) {
|
|||
}
|
||||
}
|
||||
|
||||
function check_php_setting($name, $value) {
|
||||
if (ini_get($name) != $value) {
|
||||
print "<p>Note tat the value of PHP's configuration option <code><b>$name</b></code> is incorrect. It should be set to '$value' for Drupal to work properly. Either configure your webserver to support <code>.htaccess</code> files so Drupal's <code>.htaccess</code> file can set it to the proper value, or edit your <code>php.ini</code> file directly. This message will automatically dissapear when the problem has been fixed.</p>";
|
||||
}
|
||||
}
|
||||
|
||||
function array2object($node) {
|
||||
|
||||
if (is_array($node)) {
|
||||
|
|
Loading…
Reference in New Issue