- Timestamp:
- Apr 23, 2021 11:00:26 PM (3 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r742 r743 115 115 116 116 // Human-readable format used to display dates. 117 'date_format' => 'd M Y', 118 'time_format' => 'h:i A', 119 'lc_date_format' => '% e%b %Y', // Localized date for strftime() https://www.php.net/manual/en/function.strftime.php117 'date_format' => 'd M Y', // Format accepted by DateTimeInterface::format() https://www.php.net/manual/en/datetime.format.php 118 'time_format' => 'h:i A', // Format accepted by DateTimeInterface::format() https://www.php.net/manual/en/datetime.format.php 119 'lc_date_format' => '%d %b %Y', // Localized date for strftime() https://www.php.net/manual/en/function.strftime.php 120 120 'lc_time_format' => '%k:%M', // Localized time for strftime() https://www.php.net/manual/en/function.strftime.php 121 121 'sql_date_format' => '%e %b %Y', … … 1880 1880 1881 1881 try { 1882 // Create a DateTime object and conver the timezone from server to user.1882 // Create a DateTime object and convert the timezone from server to user. 1883 1883 $dt = $this->convertTZ($datetime, $this->getParam('php_timezone'), $this->getParam('user_timezone')); 1884 1884 } catch (Exception $e) { -
trunk/lib/Email.inc.php
r735 r743 294 294 if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) { 295 295 unset($unreplaced_match[0]); 296 $app->logMsg(sprintf('Cannot get email body. Unreplaced variable %s in template %s', getDump($unreplaced_match)), LOG_ERR, __FILE__, __LINE__);296 $app->logMsg(sprintf('Cannot get email body. Unreplaced variable(s) "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__); 297 297 return false; 298 298 } … … 352 352 if (preg_match('/({[^}]+})/', $final_body, $unreplaced_match)) { 353 353 unset($unreplaced_match[0]); 354 $app->logMsg(sprintf('Unreplaced variable "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__); 354 $app->logMsg(sprintf('Unreplaced variable(s) "%s" in template "%s"', getDump($unreplaced_match), $this->_template_filename), LOG_ERR, __FILE__, __LINE__); 355 return false; 355 356 } 356 357 -
trunk/lib/Utilities.inc.php
r742 r743 38 38 define('SC_DUMP_VAR_DUMP', 1); 39 39 define('SC_DUMP_VAR_EXPORT', 2); 40 define('SC_DUMP_JSON', 3); 40 41 function dump($var, $display=false, $dump_method=SC_DUMP_PRINT_R, $file='', $line='') 41 42 { … … 73 74 case SC_DUMP_VAR_EXPORT: 74 75 var_export($var); 76 break; 77 78 case SC_DUMP_JSON: 79 json_encode($var, JSON_PRETTY_PRINT); 75 80 break; 76 81 } … … 1543 1548 * 1544 1549 * @access public 1545 * @param string $url URL to a file. 1546 * @return bool True if the resource exists, false otherwise. 1550 * @param string $url URL to a file. 1551 * @param int $timeout The maximum number of seconds to allow the HTTP query to execute. 1552 * @return bool True if the resource exists, false otherwise. 1547 1553 * @author Quinn Comendant <quinn@strangecode.com> 1548 1554 * @version 2.0
Note: See TracChangeset
for help on using the changeset viewer.