Skip to content

Commit 506b038

Browse files
authored
Develop (#253)
- Adding fix for removing slashes at the end of URL and only adding them before subpages - Fixing WonderCMS news link * Update version
1 parent 6d5fda4 commit 506b038

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
session_start();
10-
define('VERSION', '3.3.0');
10+
define('VERSION', '3.3.1');
1111
mb_internal_encoding('UTF-8');
1212

1313
if (defined('PHPUNIT_TESTING') === false) {
@@ -1795,7 +1795,7 @@ private function checkWcmsCoreUpdate(): void
17951795
$this->alert(
17961796
'info',
17971797
'<h3>New WonderCMS update available</h3>
1798-
<a href="https://wondercms.com/whatsnew" target="_blank"><u><b>Check what\'s new</b></u></a>
1798+
<a href="https://wondercms.com/news" target="_blank"><u><b>Check what\'s new</b></u></a>
17991799
and <b>backup your website</b> before updating.
18001800
<form action="' . $this->getCurrentPageUrl() . '" method="post" class="marginTop5">
18011801
<button type="submit" class="wbtn wbtn-info marginTop20" name="backup"><i class="installIcon"></i>Download backup</button>
@@ -2366,7 +2366,7 @@ private function renderPageNavMenuItem(object $item, string $parentSlug = ''): s
23662366
$visibleSubpage = $subpages && in_array('show', array_column((array)$subpages, 'visibility'));
23672367
}
23682368

2369-
$parentSlug .= $item->slug . '/';
2369+
$parentSlug .= $subpages ? $item->slug . '/' : $item->slug;
23702370
$output = '<li class="nav-item ' . ($this->currentPage === $item->slug ? 'active ' : '') . ($visibleSubpage ? 'subpage-nav' : '') . '">
23712371
<a class="nav-link" href="' . self::url($parentSlug) . '">' . $item->name . '</a>';
23722372

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.3.0
1+
3.3.1

0 commit comments

Comments
 (0)