Skip to content

Commit 956b925

Browse files
authored
Merge pull request #13 from fstorck/master
Adding additional @page@ replacement pattern
2 parents 02d3622 + 8363401 commit 956b925

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

action.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,14 @@ public function handle_ajax_call_unknown(Doku_Event &$event, $param) {
5252
array(
5353
'@NS@',
5454
'@ID@',
55-
'@USER@'
55+
'@USER@',
56+
'@PAGE@'
5657
),
5758
array(
5859
getNS($INPUT->post->str('id')),
5960
$INPUT->post->str('id'),
60-
$_SERVER['REMOTE_USER']
61+
$_SERVER['REMOTE_USER'],
62+
noNS($INPUT->post->str('id'))
6163
),
6264
$filename
6365
);

lang/en/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
// keys need to match the config setting name
9-
$lang['filename'] = 'How to name pasted images. You can use the placeholders @USER@, @NS@, @ID@ and strftime placeholders. The file extension is added automatically.';
9+
$lang['filename'] = 'How to name pasted images. You can use the placeholders @USER@, @NS@, @ID@, @PAGE@ and strftime placeholders. The file extension is added automatically.';
1010

1111

1212

lang/fr/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
*/
77

88
// keys need to match the config setting name
9-
$lang['filename'] = 'Comment nommer les images collées. Vous pouvez utiliser les motifs @USER@, @NS@, @ID@, ansi que des formats de strftime. Imgpaste ajoutera automatiquement la bonne extension au nom du fichier.';
9+
$lang['filename'] = 'Comment nommer les images collées. Vous pouvez utiliser les motifs @USER@, @NS@, @ID@, @PAGE@ ansi que des formats de strftime. Imgpaste ajoutera automatiquement la bonne extension au nom du fichier.';
1010

1111
//Setup VIM: ex: et ts=4 :

lang/ko/settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
// keys need to match the config setting name
9-
$lang['filename'] = '올린 파일의 이름. 대체 문자열 @USER@, @NS@, @ID@, strftime을 사용할 수 있습니다. 파일확장자는 자동으로 더해집니다.';
9+
$lang['filename'] = '올린 파일의 이름. 대체 문자열 @USER@, @NS@, @ID@, @PAGE@, strftime을 사용할 수 있습니다. 파일확장자는 자동으로 더해집니다.';
1010

1111

1212

plugin.info.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
base imgpaste
22
author Andreas Gohr
33
4-
date 2017-09-24
4+
date 2018-05-03
55
name imgpaste plugin
66
desc Add images via cut'n'paste in Chrome
77
url http://www.dokuwiki.org/plugin:imgpaste

0 commit comments

Comments
 (0)