application/modules/admin/categories.php 1 location
|
@@ 672-678 (lines=7) @@
|
669 |
|
* @param string $tpl |
670 |
|
* @return bool |
671 |
|
*/ |
672 |
|
public function tpl_validation($tpl) { |
673 |
|
if (preg_match('/^[0-9A-Za-z\_\.]{0,50}$/', $tpl)) { |
674 |
|
return TRUE; |
675 |
|
} |
676 |
|
$this->form_validation->set_message('tpl_validation', lang('The %s field can only contain Latin characters', 'admin')); |
677 |
|
return FALSE; |
678 |
|
} |
679 |
|
|
680 |
|
/** |
681 |
|
* @param int $id |
application/modules/admin/pages.php 1 location
|
@@ 70-77 (lines=8) @@
|
67 |
|
* @param string $tpl |
68 |
|
* @return bool |
69 |
|
*/ |
70 |
|
public function tpl_validation($tpl) { |
71 |
|
|
72 |
|
if (preg_match('/^[A-Za-z\_\.]{0,50}$/', $tpl)) { |
73 |
|
return TRUE; |
74 |
|
} |
75 |
|
$this->form_validation->set_message('tpl_validation', lang('The %s field can only contain Latin characters', 'admin')); |
76 |
|
return FALSE; |
77 |
|
} |
78 |
|
|
79 |
|
/** |
80 |
|
* Add new page |