Skip to content

Commit

Permalink
TBS version 3.15.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Skrol29 committed May 8, 2024
1 parent bb92c75 commit c4344b3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [3.15.2] - 2024-05-08

### Fixed

- OnData plug-ins are not triggered, because of a private property.

### Added

- New parameter « ope=debug_val » for debugging values.


## [3.15.1] - 2024-01-25

- PHP 8.2 compatibility improved
Expand Down
4 changes: 3 additions & 1 deletion tbs_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* TinyButStrong - Template Engine for Pro and Beginners
*
* @version 3.15.2 for PHP 5, 7, 8
* @date 2024-05-05
* @date 2024-05-08
* @link http://www.tinybutstrong.com Web site
* @author http://www.tinybutstrong.com/onlyyou.html
* @license http://opensource.org/licenses/LGPL-3.0 LGPL-3.0
Expand Down Expand Up @@ -1761,6 +1761,7 @@ function meth_Locator_Replace(&$Txt,&$Loc,&$Value,$SubStart) {
} elseif ($ope==='lower') { $Loc->OpeAct[$i] = 16;
} elseif ($ope==='upper1') { $Loc->OpeAct[$i] = 17;
} elseif ($ope==='upperw') { $Loc->OpeAct[$i] = 18;
} elseif ($ope==='debug_val') { $Loc->OpeAct[$i] = 19;
} else {
$x = substr($ope,0,4);
if ($x==='max:') {
Expand Down Expand Up @@ -1877,6 +1878,7 @@ function meth_Locator_Replace(&$Txt,&$Loc,&$Value,$SubStart) {
case 16: $CurrVal = ($Loc->OpeUtf8) ? mb_convert_case($CurrVal, MB_CASE_LOWER, 'UTF-8') : strtolower($CurrVal); break;
case 17: $CurrVal = ucfirst($CurrVal); break;
case 18: $CurrVal = ($Loc->OpeUtf8) ? mb_convert_case($CurrVal, MB_CASE_TITLE, 'UTF-8') : ucwords(strtolower($CurrVal)); break;
case 19: $CurrVal = '(' . gettype($CurrVal) . ') ' . var_export($CurrVal, true); break;
}
}
}
Expand Down
9 changes: 8 additions & 1 deletion tbs_us_manual.htm
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
}
-->
</style> </head>
<body style=" background-color: white;">
<body style=" background-color: white;">
<div id="main-body">
<div class="txt-tiny" style="display:inline-block; float:left;">
<table class="txt-tiny" cellspacing="0" cellpadding="0" border="0">
Expand Down Expand Up @@ -3828,6 +3828,13 @@ <h6>Remark:</h6>
is not supported in UTF8. <span class="versioning">(supported
since TBS version 3.8.0)</span></td>
</tr>
<tr>
<td class="opt-value" valign="top">debug_val</td>
<td>Display a string export of the value (type + <a href="https://www.php.net/manual/en/function.var-export.php">var_export</a>).
For example: 3.55 will display <span class="txt-small">(double)
3.55</span>. <span class="versioning">(supported
since TBS version 3.15.2)</span></td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit c4344b3

Please sign in to comment.