This commit is contained in:
2026-05-15 18:33:51 +02:00
parent 3601be572f
commit c980004309
8442 changed files with 783630 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
<?php
/**
* @author mago
*/
function smarty_modifier_shortThreadTitle($string) {
/* nie wywali<6C>em tego na zewn<77>trz bo to w sumie tylko w jednym miejscu jest potrzebne
* nie podejrzewam <20>eby kto<74> jeszcze tego u<>ywa<77>
* */
$letterLimit = 25;
$arr = explode(' ',$string);
$ret = '';
foreach($arr AS $k => $v){
$spacer = ($k>0?' ':'');
if(strlen($ret.$spacer.$v) <= $letterLimit)$ret .= $spacer.$v;
}
if(strlen($string) > strlen($ret))$ret .= '...';
return $ret;
}
?>