Merge remote-tracking branch 'origin/master'

This commit is contained in:
Michal Čihař 2012-07-04 17:25:32 +02:00
commit 15ab6eea39

View File

@ -25,6 +25,22 @@ foreach ($post_params as $one_post_param) {
}
}
/**
* Sets globals from $_POST patterns, for Or* variables
* (additional criteria lines)
*/
$post_patterns = array(
'/^Or/i'
);
foreach (array_keys($_POST) as $post_key) {
foreach ($post_patterns as $one_post_pattern) {
if (preg_match($one_post_pattern, $post_key)) {
$GLOBALS[$post_key] = $_POST[$post_key];
}
}
}
/**
* Gets the relation settings
*/