Skip to content

Commit b609635

Browse files
committed
1 parent a42b84b commit b609635

File tree

853 files changed

+31044
-24797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

853 files changed

+31044
-24797
lines changed

dokuwiki/README

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
All documentation for DokuWiki is available online
2-
at http://www.dokuwiki.org/
2+
at https://www.dokuwiki.org/
33

44
For Installation Instructions see
5-
http://www.dokuwiki.org/install
5+
https://www.dokuwiki.org/install
66

7-
DokuWiki - 2004-2018 (c) Andreas Gohr <andi@splitbrain.org>
7+
DokuWiki - 2004-2020 (c) Andreas Gohr <andi@splitbrain.org>
88
and the DokuWiki Community
99
See COPYING and file headers for license info
1010

dokuwiki/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2018-04-22b "Greebo"
1+
2020-07-29 "Hogfather"

dokuwiki/bin/dwpage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

44
use splitbrain\phpcli\CLI;
@@ -182,7 +182,7 @@ protected function commandCheckout($wiki_id, $localfile) {
182182
}
183183

184184
if(empty($localfile)) {
185-
$localfile = getcwd() . '/' . utf8_basename($wiki_fn);
185+
$localfile = getcwd() . '/' . \dokuwiki\Utf8\PhpString::basename($wiki_fn);
186186
}
187187

188188
if(!file_exists(dirname($localfile))) {

dokuwiki/bin/gittool.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

44
use splitbrain\phpcli\CLI;
@@ -89,17 +89,17 @@ protected function main(Options $options) {
8989
echo $options->help();
9090
break;
9191
case 'clone':
92-
$this->cmd_clone($args);
92+
$this->cmdClone($args);
9393
break;
9494
case 'install':
95-
$this->cmd_install($args);
95+
$this->cmdInstall($args);
9696
break;
9797
case 'repo':
9898
case 'repos':
99-
$this->cmd_repos();
99+
$this->cmdRepos();
100100
break;
101101
default:
102-
$this->cmd_git($command, $args);
102+
$this->cmdGit($command, $args);
103103
}
104104
}
105105

@@ -108,7 +108,7 @@ protected function main(Options $options) {
108108
*
109109
* @param array $extensions
110110
*/
111-
public function cmd_clone($extensions) {
111+
public function cmdClone($extensions) {
112112
$errors = array();
113113
$succeeded = array();
114114

@@ -137,7 +137,7 @@ public function cmd_clone($extensions) {
137137
*
138138
* @param array $extensions
139139
*/
140-
public function cmd_install($extensions) {
140+
public function cmdInstall($extensions) {
141141
$errors = array();
142142
$succeeded = array();
143143

@@ -171,7 +171,7 @@ public function cmd_install($extensions) {
171171
* @param $cmd
172172
* @param $arg
173173
*/
174-
public function cmd_git($cmd, $arg) {
174+
public function cmdGit($cmd, $arg) {
175175
$repos = $this->findRepos();
176176

177177
$shell = array_merge(array('git', $cmd), $arg);
@@ -199,7 +199,7 @@ public function cmd_git($cmd, $arg) {
199199
/**
200200
* Simply lists the repositories
201201
*/
202-
public function cmd_repos() {
202+
public function cmdRepos() {
203203
$repos = $this->findRepos();
204204
foreach($repos as $repo) {
205205
echo "$repo\n";

dokuwiki/bin/indexer.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

44
use splitbrain\phpcli\CLI;
@@ -60,7 +60,7 @@ protected function main(Options $options) {
6060
/**
6161
* Update the index
6262
*/
63-
function update() {
63+
protected function update() {
6464
global $conf;
6565
$data = array();
6666
$this->quietecho("Searching pages... ");
@@ -77,7 +77,7 @@ function update() {
7777
*
7878
* @param string $id
7979
*/
80-
function index($id) {
80+
protected function index($id) {
8181
$this->quietecho("$id... ");
8282
idx_addPage($id, !$this->quiet, $this->clear);
8383
$this->quietecho("done.\n");
@@ -86,7 +86,7 @@ function index($id) {
8686
/**
8787
* Clear all index files
8888
*/
89-
function clearindex() {
89+
protected function clearindex() {
9090
$this->quietecho("Clearing index... ");
9191
idx_get_indexer()->clear();
9292
$this->quietecho("done.\n");
@@ -97,7 +97,7 @@ function clearindex() {
9797
*
9898
* @param string $msg
9999
*/
100-
function quietecho($msg) {
100+
protected function quietecho($msg) {
101101
if(!$this->quiet) echo $msg;
102102
}
103103
}

dokuwiki/bin/plugin.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

4+
use dokuwiki\Extension\PluginController;
45
use splitbrain\phpcli\CLI;
56
use splitbrain\phpcli\Colors;
67
use splitbrain\phpcli\Options;
@@ -51,7 +52,7 @@ protected function main(Options $options) {
5152
* List available plugins
5253
*/
5354
protected function listPlugins() {
54-
/** @var Doku_Plugin_Controller $plugin_controller */
55+
/** @var PluginController $plugin_controller */
5556
global $plugin_controller;
5657

5758
echo "\n";
@@ -85,10 +86,9 @@ protected function listPlugins() {
8586
* Instantiate a CLI plugin
8687
*
8788
* @param string $name
88-
* @return DokuWiki_CLI_Plugin|null
89+
* @return \dokuwiki\Extension\CLIPlugin|null
8990
*/
90-
protected
91-
function loadPlugin($name) {
91+
protected function loadPlugin($name) {
9292
// execute the plugin CLI
9393
$class = "cli_plugin_$name";
9494
if(class_exists($class)) {

dokuwiki/bin/render.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

44
use splitbrain\phpcli\CLI;

dokuwiki/bin/striplangs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

44
use splitbrain\phpcli\CLI;

dokuwiki/bin/wantedpages.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/php
1+
#!/usr/bin/env php
22
<?php
33

44
use splitbrain\phpcli\CLI;
@@ -74,8 +74,8 @@ protected function main(Options $options) {
7474

7575
$this->info("searching $startdir");
7676

77-
foreach($this->get_pages($startdir) as $page) {
78-
$this->internal_links($page);
77+
foreach($this->getPages($startdir) as $page) {
78+
$this->internalLinks($page);
7979
}
8080
ksort($this->result);
8181
foreach($this->result as $main => $subs) {
@@ -98,7 +98,7 @@ protected function main(Options $options) {
9898
* @param string $basepath
9999
* @return int
100100
*/
101-
protected function dir_filter($entry, $basepath) {
101+
protected function dirFilter($entry, $basepath) {
102102
if($entry == '.' || $entry == '..') {
103103
return WantedPagesCLI::DIR_CONTINUE;
104104
}
@@ -121,7 +121,7 @@ protected function dir_filter($entry, $basepath) {
121121
* @return array
122122
* @throws DokuCLI_Exception
123123
*/
124-
protected function get_pages($dir) {
124+
protected function getPages($dir) {
125125
static $trunclen = null;
126126
if(!$trunclen) {
127127
global $conf;
@@ -135,11 +135,11 @@ protected function get_pages($dir) {
135135
$pages = array();
136136
$dh = opendir($dir);
137137
while(false !== ($entry = readdir($dh))) {
138-
$status = $this->dir_filter($entry, $dir);
138+
$status = $this->dirFilter($entry, $dir);
139139
if($status == WantedPagesCLI::DIR_CONTINUE) {
140140
continue;
141141
} else if($status == WantedPagesCLI::DIR_NS) {
142-
$pages = array_merge($pages, $this->get_pages($dir . '/' . $entry));
142+
$pages = array_merge($pages, $this->getPages($dir . '/' . $entry));
143143
} else {
144144
$page = array(
145145
'id' => pathID(substr($dir . '/' . $entry, $trunclen)),
@@ -157,7 +157,7 @@ protected function get_pages($dir) {
157157
*
158158
* @param array $page array with page id and file path
159159
*/
160-
function internal_links($page) {
160+
protected function internalLinks($page) {
161161
global $conf;
162162
$instructions = p_get_instructions(file_get_contents($page['file']));
163163
$cns = getNS($page['id']);

dokuwiki/conf/acronyms.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FTP File Transfer Protocol
2020
FOSS Free & Open-Source Software
2121
FLOSS Free/Libre and Open Source Software
2222
FUD Fear, Uncertainty, and Doubt
23+
FYI For your information
2324
GB Gigabyte
2425
GHz Gigahertz
2526
GPL GNU General Public License

0 commit comments

Comments
 (0)