-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from cosmocode/gh-tests
Update GitHub workflows
- Loading branch information
Showing
10 changed files
with
87 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: DokuWiki Default Tasks | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '55 14 8 * *' | ||
|
||
|
||
jobs: | ||
all: | ||
uses: dokuwiki/github-action/.github/workflows/all.yml@main |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
|
||
class QuerySaver | ||
{ | ||
|
||
protected $db; | ||
protected $upstream; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?php | ||
|
||
use dokuwiki\Extension\AdminPlugin; | ||
use dokuwiki\Form\Form; | ||
use dokuwiki\Form\InputElement; | ||
use dokuwiki\plugin\sqlite\QuerySaver; | ||
|
@@ -12,13 +13,13 @@ | |
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html | ||
* @author Andreas Gohr <[email protected]> | ||
*/ | ||
class admin_plugin_sqlite extends DokuWiki_Admin_Plugin | ||
class admin_plugin_sqlite extends AdminPlugin | ||
{ | ||
/** @var SQLiteDB */ | ||
protected $db = null; | ||
protected $db; | ||
|
||
/** @var QuerySaver */ | ||
protected $querySaver = null; | ||
protected $querySaver; | ||
|
||
/** @inheritdoc */ | ||
public function getMenuSort() | ||
|
@@ -89,7 +90,10 @@ public function handle() | |
case 'download': | ||
$file = $this->db->getDbFile(); | ||
header('Content-Type: application/vnd.sqlite3'); | ||
header('Content-Disposition: attachment; filename="' . $this->db->getDbName() . SQLiteDB::FILE_EXTENSION . '"'); | ||
header( | ||
'Content-Disposition: attachment; filename="' | ||
. $this->db->getDbName() . SQLiteDB::FILE_EXTENSION . '"' | ||
); | ||
readfile($file); | ||
exit(0); | ||
} | ||
|
@@ -148,12 +152,12 @@ public function getTOC() | |
$dbfiles = glob($conf['metadir'] . '/*.sqlite3'); | ||
if (is_array($dbfiles)) foreach ($dbfiles as $file) { | ||
$db = basename($file, '.sqlite3'); | ||
$toc[] = array( | ||
'link' => wl($ID, array('do' => 'admin', 'page' => 'sqlite', 'db' => $db, 'sectok' => getSecurityToken())), | ||
$toc[] = [ | ||
'link' => wl($ID, ['do' => 'admin', 'page' => 'sqlite', 'db' => $db, 'sectok' => getSecurityToken()]), | ||
'title' => $db, | ||
'level' => 2, | ||
'type' => 'ul', | ||
); | ||
]; | ||
} | ||
|
||
return $toc; | ||
|
@@ -238,7 +242,8 @@ protected function selfLink($form = true, $params = []) | |
'page' => 'sqlite', | ||
'db' => $this->db ? $this->db->getDBName() : '', | ||
'sectok' => getSecurityToken(), | ||
], $params | ||
], | ||
$params | ||
); | ||
|
||
return wl($ID, $params, false, $form ? '&' : '&'); | ||
|
Oops, something went wrong.