Skip to content

Commit c4344b3

Browse files
author
Skrol29
committed
TBS version 3.15.2
1 parent bb92c75 commit c4344b3

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44

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

7+
## [3.15.2] - 2024-05-08
8+
9+
### Fixed
10+
11+
- OnData plug-ins are not triggered, because of a private property.
12+
13+
### Added
14+
15+
- New parameter « ope=debug_val » for debugging values.
16+
17+
718
## [3.15.1] - 2024-01-25
819

920
- PHP 8.2 compatibility improved

tbs_class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* TinyButStrong - Template Engine for Pro and Beginners
55
*
66
* @version 3.15.2 for PHP 5, 7, 8
7-
* @date 2024-05-05
7+
* @date 2024-05-08
88
* @link http://www.tinybutstrong.com Web site
99
* @author http://www.tinybutstrong.com/onlyyou.html
1010
* @license http://opensource.org/licenses/LGPL-3.0 LGPL-3.0
@@ -1761,6 +1761,7 @@ function meth_Locator_Replace(&$Txt,&$Loc,&$Value,$SubStart) {
17611761
} elseif ($ope==='lower') { $Loc->OpeAct[$i] = 16;
17621762
} elseif ($ope==='upper1') { $Loc->OpeAct[$i] = 17;
17631763
} elseif ($ope==='upperw') { $Loc->OpeAct[$i] = 18;
1764+
} elseif ($ope==='debug_val') { $Loc->OpeAct[$i] = 19;
17641765
} else {
17651766
$x = substr($ope,0,4);
17661767
if ($x==='max:') {
@@ -1877,6 +1878,7 @@ function meth_Locator_Replace(&$Txt,&$Loc,&$Value,$SubStart) {
18771878
case 16: $CurrVal = ($Loc->OpeUtf8) ? mb_convert_case($CurrVal, MB_CASE_LOWER, 'UTF-8') : strtolower($CurrVal); break;
18781879
case 17: $CurrVal = ucfirst($CurrVal); break;
18791880
case 18: $CurrVal = ($Loc->OpeUtf8) ? mb_convert_case($CurrVal, MB_CASE_TITLE, 'UTF-8') : ucwords(strtolower($CurrVal)); break;
1881+
case 19: $CurrVal = '(' . gettype($CurrVal) . ') ' . var_export($CurrVal, true); break;
18801882
}
18811883
}
18821884
}

tbs_us_manual.htm

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
}
181181
-->
182182
</style> </head>
183-
<body style=" background-color: white;">
183+
<body style=" background-color: white;">
184184
<div id="main-body">
185185
<div class="txt-tiny" style="display:inline-block; float:left;">
186186
<table class="txt-tiny" cellspacing="0" cellpadding="0" border="0">
@@ -3828,6 +3828,13 @@ <h6>Remark:</h6>
38283828
is not supported in UTF8. <span class="versioning">(supported
38293829
since TBS version 3.8.0)</span></td>
38303830
</tr>
3831+
<tr>
3832+
<td class="opt-value" valign="top">debug_val</td>
3833+
<td>Display a string export of the value (type + <a href="https://www.php.net/manual/en/function.var-export.php">var_export</a>).
3834+
For example: 3.55 will display <span class="txt-small">(double)
3835+
3.55</span>. <span class="versioning">(supported
3836+
since TBS version 3.15.2)</span></td>
3837+
</tr>
38313838
</tbody>
38323839
</table>
38333840
</div>

0 commit comments

Comments
 (0)