Parent Directory | Revision Log
no message
1 | cvsjoko | 1.1 | <?php |
2 | |||
3 | /* | ||
4 | * Smarty plugin | ||
5 | * ------------------------------------------------------------- | ||
6 | * Type: modifier | ||
7 | * Name: default | ||
8 | * Purpose: designate default value for empty variables | ||
9 | * ------------------------------------------------------------- | ||
10 | */ | ||
11 | function smarty_modifier_default($string, $default = '') | ||
12 | { | ||
13 | if (empty($string)) | ||
14 | return $default; | ||
15 | else | ||
16 | return $string; | ||
17 | } | ||
18 | |||
19 | /* vim: set expandtab: */ | ||
20 | |||
21 | ?> |
MailToCvsAdmin">MailToCvsAdmin | ViewVC Help |
Powered by ViewVC 1.1.26 |