aboutsummaryrefslogtreecommitdiffstats
path: root/en/4
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2021-02-09 20:57:17 +0100
committerManuel Hiebel <leuhmanu@mageia.org>2021-02-09 20:57:17 +0100
commitce5a5f6603acae6ed248bfcdc67e22b804c3b71b (patch)
tree09fe86f8071cb1d207db547ac7f9966ba54b298f /en/4
parent1cd7a12b30b71ec4c7bcfb4b34328c93ff0fb982 (diff)
downloadwww-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar.gz
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar.bz2
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.tar.xz
www-ce5a5f6603acae6ed248bfcdc67e22b804c3b71b.zip
Fix php
Diffstat (limited to 'en/4')
-rw-r--r--en/4/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/en/4/index.php b/en/4/index.php
index da329c618..eacf6ce5e 100644
--- a/en/4/index.php
+++ b/en/4/index.php
@@ -78,7 +78,7 @@ for ($i = 0; $i < 12; $i++) {
</ol>
<div class="carousel-inner">
<?php
-function carousel($src, $ttl, $active = ''){
+function carousel($src, $ttl, $active = false){
$div = sprintf('<div class="carousel-item%s">', $active ? ' active' : '') ;
$div .= sprintf('<img class="d-block rounded-lg img-fluid"') ;
$div .= sprintf (' src="%s" alt="%s" title="%s">',$src, $ttl, $ttl);
@@ -88,7 +88,7 @@ function carousel($src, $ttl, $active = ''){
$div .= sprintf ('</div>'. PHP_EOL);
echo $div;
}
- carousel('/g/4/kde.png', 'KDE', active );
+ carousel('/g/4/kde.png', 'KDE', true );
carousel('/g/4/razorqt.png', 'RazorQT');
carousel('/g/4/xfce.png', 'XFCE');
carousel('/g/4/gnome.png', 'GNOME');