Changeset 767 for trunk/lib


Ignore:
Timestamp:
Jun 7, 2022 6:41:24 AM (2 years ago)
Author:
anonymous
Message:

Add App param ‘template_ext’ used to inform services where to find header and footer templates. Minor fixes.

Location:
trunk/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r763 r767  
    8888        'site_version' => '', // Version of this application (set automatically during start() if site_version_file is used).
    8989        'site_version_file' => 'docs/version.txt', // File containing version number of this app, relative to the include path.
     90        'template_ext' => 'ihtml', // Legacy template file send in .ihtml, newer sites use .inc.html or .inc.php.
    9091
    9192        // The location the user will go if the system doesn't know where else to send them.
  • trunk/lib/Email.inc.php

    r759 r767  
    3737    'subject' => 'Your account has been activated',
    3838));
    39 $email->setTemplate('email_registration_confirm.ihtml');
     39$email->setTemplate('email_registration_confirm.eml');
    4040// $email->setString('Or you can pass your message body as a string, also with {VARIABLES}.');
    4141$email->replace(array(
  • trunk/lib/Validator.inc.php

    r737 r767  
    404404        }
    405405
    406         $timestamp = strtotime($val);
    407         if (!$timestamp || $timestamp < 1) {
     406        if (false === strtotime($val)) {
    408407            $app->logMsg(sprintf('%s (line %s) failed: %s', __METHOD__, __LINE__, getDump($val)), $type, $file, $line);
    409408            return false;
Note: See TracChangeset for help on using the changeset viewer.