1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-18 12:21:45 +02:00

Improved check for Bootstrap3

This commit is contained in:
Cameron
2013-12-24 02:24:14 -08:00
parent 7ac3f78dbf
commit 2e7232aa9a
4 changed files with 6 additions and 6 deletions

View File

@@ -200,7 +200,7 @@ class e_form
$options['class'] = "tbox";
}
if(deftrue('BOOTSTRAP') == 3)
if(deftrue('BOOTSTRAP') === 3)
{
$options['class'] = 'form-control';
}
@@ -1631,7 +1631,7 @@ class e_form
}
}
$sep = (deftrue('BOOTSTRAP') == 3) ? "" : "<span class='divider'>/</span>";
$sep = (deftrue('BOOTSTRAP') === 3) ? "" : "<span class='divider'>/</span>";
$text .= implode($sep."</li><li>",$opt);
@@ -1937,7 +1937,7 @@ class e_form
// 'multiple' => false, - see case 'select'
);
$form_control = (deftrue('BOOTSTRAP') == 3) ? ' form-control' : '';
$form_control = (deftrue('BOOTSTRAP') === 3) ? ' form-control' : '';
switch ($type) {
case 'hidden':