commit 4e9035e488ccc151be1a67e742f447d92865eed0 parent 48ee637b339a11a1377a463bf90c01ca1089b38f Author: JayVii <jayvii[AT]posteo[DOT]de> Date: Tue, 22 Oct 2024 00:17:21 +0200 feat: only list the last 500 videos Diffstat:
M | index.php | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/index.php b/index.php @@ -190,6 +190,11 @@ <?php $index = 0; foreach ($videos as $video) { + + /* Stop if 500 videos are listed */ + if ($index >= 500) { + break; + } ?> <section id="video_<?php echo $index; ?>">