Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 589f6e5

Browse files
authored
Merge pull request #1662 from dedyksuntoro/patch-6
Fix: Call to undefined function str_limit()
2 parents 460be2e + 043c58d commit 589f6e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/default/type_components/datamodal/browser.blade.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
if ($ext && in_array($ext, $img_extension)) {
4141
echo "<td><a href='".asset($row->$col)."' data-lightbox='roadtrip'><img src='".asset($row->$col)."' width='50px' height='30px'/></a></td>";
4242
} else {
43-
echo "<td>".str_limit(strip_tags($row->$col), 50)."</td>";
43+
echo "<td>".Str::of(strip_tags($row->$col))->limit(50)."</td>";
4444
}
4545
@endphp
4646
@endforeach
@@ -67,4 +67,4 @@ class='fa fa-check-circle'></i> {{cbLang('datamodal_select')}}</a></td>
6767
@endforeach
6868
</tbody>
6969
</table>
70-
<div align="center">{!! str_replace("/?","?",$result->appends(Request::all())->render()) !!}</div>
70+
<div align="center">{!! str_replace("/?","?",$result->appends(Request::all())->render()) !!}</div>

0 commit comments

Comments
 (0)