summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2014-01-05 16:25:21 +0000
committerAnika Henke <anika@selfthinker.org>2014-01-05 16:25:21 +0000
commit8491e52805a9aaef90168f1417c6e0806fb7c5d7 (patch)
tree536ad50878f0ac6f6815db91f8bcb4819bc092ae /bin
parent6fdd11e032b654dd27de346f7e54231ee043d7ef (diff)
parentdfaf5f6c54597f81b1a8b777f55b89c93f87a345 (diff)
downloadrpg-8491e52805a9aaef90168f1417c6e0806fb7c5d7.tar.gz
rpg-8491e52805a9aaef90168f1417c6e0806fb7c5d7.tar.bz2
Merge remote-tracking branch 'origin/master' into extension_manager
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dwpage.php8
-rwxr-xr-xbin/striplangs.php4
-rwxr-xr-xbin/wantedpages.php4
3 files changed, 8 insertions, 8 deletions
diff --git a/bin/dwpage.php b/bin/dwpage.php
index bc9c0f6bb..96f6d3ef9 100755
--- a/bin/dwpage.php
+++ b/bin/dwpage.php
@@ -13,7 +13,7 @@ require_once DOKU_INC.'inc/cliopts.php';
function usage($action) {
switch ( $action ) {
case 'checkout':
- print "Usage: dwpage.php [opts] checkout <wiki:page> [working_file]
+ print "Usage: dwpage.php [opts] checkout <wiki:page> [working_file]
Checks out a file from the repository, using the wiki id and obtaining
a lock for the page.
@@ -30,7 +30,7 @@ function usage($action) {
";
break;
case 'commit':
- print "Usage: dwpage.php [opts] -m \"Msg\" commit <working_file> <wiki:page>
+ print "Usage: dwpage.php [opts] -m \"Msg\" commit <working_file> <wiki:page>
Checks in the working_file into the repository using the specified
wiki id, archiving the previous version.
@@ -46,7 +46,7 @@ function usage($action) {
";
break;
case 'lock':
- print "Usage: dwpage.php [opts] lock <wiki:page>
+ print "Usage: dwpage.php [opts] lock <wiki:page>
Obtains or updates a lock for a wiki page
@@ -59,7 +59,7 @@ function usage($action) {
";
break;
case 'unlock':
- print "Usage: dwpage.php [opts] unlock <wiki:page>
+ print "Usage: dwpage.php [opts] unlock <wiki:page>
Removes a lock for a wiki page.
diff --git a/bin/striplangs.php b/bin/striplangs.php
index 40cef5063..2bfddcea4 100755
--- a/bin/striplangs.php
+++ b/bin/striplangs.php
@@ -15,7 +15,7 @@ require_once DOKU_INC.'inc/cliopts.php';
function usage($show_examples = false) {
print "Usage: striplangs.php [-h [-x]] [-e] [-k lang1[,lang2]..[,langN]]
- Removes all languages from the instalation, besides the ones
+ Removes all languages from the installation, besides the ones
after the -k option. English language is never removed!
OPTIONS
@@ -127,7 +127,7 @@ if ( $OPTS->has('k') or $OPTS->has('keep') ) {
// ! always enforce 'en' lang when using '--keep' (DW relies on it)
if ( !isset($langs['en']) ) {
- $langs[]='en';
+ $langs[]='en';
}
} elseif ( $OPTS->has('e') or $OPTS->has('english') ) {
// '--english' was specified strip everything besides 'en'
diff --git a/bin/wantedpages.php b/bin/wantedpages.php
index 30171fc15..afcb6b271 100755
--- a/bin/wantedpages.php
+++ b/bin/wantedpages.php
@@ -49,7 +49,7 @@ function dw_dir_filter($entry, $basepath) {
#------------------------------------------------------------------------------
function dw_get_pages($dir) {
- static $trunclen = NULL;
+ static $trunclen = null;
if ( !$trunclen ) {
global $conf;
$trunclen = strlen($conf['datadir'].':');
@@ -92,7 +92,7 @@ function dw_internal_links($page) {
$mid = $ins[1][0];
resolve_pageid($cns,$mid,$exists);
if ( !$exists ) {
- list($mid) = explode('#',$mid); //record pages without hashs
+ list($mid) = explode('#',$mid); //record pages without hashs
$links[] = $mid;
}
}