Changeset 782 for trunk


Ignore:
Timestamp:
Mar 3, 2023 4:39:34 AM (14 months ago)
Author:
anonymous
Message:

Backporting a few things from codebase 2.x

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/list_template.cli.php

    r768 r782  
    123123            $listrows[] = "<\x3fphp echo '9999-12-31' == \$list[\$i]['$field'] ? '' : date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])); \x3f>";
    124124        } else if (preg_match('/datetime/i', $type)) {
    125             $listrows[] = "<\x3fphp echo Validator::validateStrDate(\$list[\$i]['$field']) ? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>";
     125            $listrows[] = "<\x3fphp echo strtotime(\$list[\$i]['modified_datetime']) > 0 ? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>";
    126126        } else if (preg_match('/date/i', $type)) {
    127             $listrows[] = "<\x3fphp echo Validator::validateStrDate(\$list[\$i]['$field']) ? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>";
     127            $listrows[] = "<\x3fphp echo strtotime(\$list[\$i]['modified_datetime']) > 0 ? date(\$app->getParam('date_format'), strtotime(\$list[\$i]['$field'])) : ''; \x3f>";
    128128        } else if (preg_match('/(amount|_rate)/i', $field)) {
    129129            $listrows[] = "<\x3fphp printf('$%01.2f', \$list[\$i]['$field']); \x3f>";
  • trunk/lib/App.inc.php

    r778 r782  
    9191        'site_version' => '', // Version of this application (set automatically during start() if site_version_file is used).
    9292        'site_version_file' => 'docs/version.txt', // File containing version number of this app, relative to the include path.
    93         'template_ext' => 'ihtml', // Legacy template file send in .ihtml, newer sites use .inc.html or .inc.php.
     93        'template_ext' => 'ihtml', // Template filename extension. Legacy template files use .ihtml, newer sites use .inc.html or .inc.php.
    9494
    9595        // The location the user will go if the system doesn't know where else to send them.
Note: See TracChangeset for help on using the changeset viewer.