mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Use constants in place of class constants
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -86,22 +86,22 @@ if (isset($_GET['enable']) && $auth) {
|
||||
|
||||
switch ($_GET['list']) {
|
||||
case 'black':
|
||||
$_POST['type'] = ListType::blacklist;
|
||||
$_POST['type'] = LISTTYPE_BLACKLIST;
|
||||
|
||||
break;
|
||||
|
||||
case 'regex_black':
|
||||
$_POST['type'] = ListType::regex_blacklist;
|
||||
$_POST['type'] = LISTTYPE_REGEX_BLACKLIST;
|
||||
|
||||
break;
|
||||
|
||||
case 'white':
|
||||
$_POST['type'] = ListType::whitelist;
|
||||
$_POST['type'] = LISTTYPE_WHITELIST;
|
||||
|
||||
break;
|
||||
|
||||
case 'regex_white':
|
||||
$_POST['type'] = ListType::regex_whitelist;
|
||||
$_POST['type'] = LISTTYPE_REGEX_WHITELIST;
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user