Skip to content

Commit

Permalink
Added support for PHP 8.x on legacy DokuWiki
Browse files Browse the repository at this point in the history
  • Loading branch information
giterlizzi committed Aug 31, 2023
1 parent 7e3e0bf commit 98da5a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.php
Expand Up @@ -130,7 +130,7 @@ public function datatables(Doku_Event $event, $param)
protected function getLangPath()
{
global $conf;
[$lang, $dialect] = explode('-', $conf['lang'], 2);
[$lang, $dialect] = array_pad(explode('-', $conf['lang'], 2), 2, null);
$dialect = strtoupper($dialect);

// exact match with dialect
Expand Down
2 changes: 1 addition & 1 deletion plugin.info.txt
@@ -1,7 +1,7 @@
base datatables
author Giuseppe Di Terlizzi
email giuseppe.diterlizzi@gmail.com
date 2023-08-30
date 2023-08-31
name DataTables Plugin
desc Add DataTables support to DokuWiki
url https://www.dokuwiki.org/plugin:datatables

0 comments on commit 98da5a9

Please sign in to comment.