Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
giterlizzi committed Feb 6, 2024
1 parent c94cc50 commit c03e048
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
13 changes: 13 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Bootstrap3 DokuWiki Template ChangeLog

## [develop]

This release increase the compatibility with the latest DokuWiki and PHP releases.

### Changes

* #589: Missing Wikipedia logo in interwiki links to Russian language
* #584, #604: Improved compatibility with new Translation Plugin
* #582: Theme changing doesn't work in Firefox/Gecko
* #573: Typeahead blocks global search if match is found
* #596, #597: Warnings after upgrade to 2023-04-04a "Jack Jackrum"


## [v2022-07-27]

This release increase the compatibility with Hogfather and the upcoming Igor release and fix some regression.
Expand Down
2 changes: 1 addition & 1 deletion Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2230,7 +2230,7 @@ public function getTOC($return = false)
$toc_undefined = array_pop($toc);
}

trigger_event('TPL_TOC_RENDER', $toc, null, false);
\dokuwiki\Extension\Event::createAndTrigger('TPL_TOC_RENDER', $toc, null, false);

if ($ACT == 'admin' && $INPUT->str('page') == 'config') {
$bootstrap3_sections = [
Expand Down
8 changes: 5 additions & 3 deletions iconify.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@

$iconify_dir = dirname(__FILE__) . '/assets/iconify/json';
$cache_key = md5(serialize($params) . $conf['template'] . filemtime(__FILE__));
$cache = new cache($cache_key, '.js');
$cache->_event = 'ICONIFY_CACHE';
$cache_files = $params;
$cache_files[] = __FILE__;
$cache_ok = $cache->useCache(array('files' => $cache_files));
$content_type = 'application/javascript; charset=utf-8';

$cache = new dokuwiki\Cache\Cache($cache_key, '.js');
$cache->setEvent('ICONIFY_CACHE');
$cache_ok = $cache->useCache(array('files' => $cache_files));


if ($params['icon']) {
$content_type = 'image/svg+xml; charset=utf-8';
list($params['prefix'], $params['icons']) = explode('-', str_replace('.svg', '', $params['icon']), 2);
Expand Down
2 changes: 1 addition & 1 deletion template.info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ date 2022-07-27
name Bootstrap3 Template
desc Bootstrap-based template for Dokuwiki
url https://www.dokuwiki.org/template:bootstrap3
build dev/20230202
build dev/20240206

0 comments on commit c03e048

Please sign in to comment.