Skip to content

Commit 492ec77

Browse files
committed
[plugin:ref] support X-elFinder with Coll-URI on XCL 2.2
1 parent 36ee2da commit 492ec77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xoops_trust_path/modules/xpwiki/plugin/ref.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function plugin_ref_init () {
104104
// サイト内画像のローカルファイルパス変換テーブル
105105
$this->conf['local_dir_mapper'] = array(
106106
// xelfinder
107-
'#^.+/([a-zA-Z0-9_-]+)/index\.php(?:/|\?page=)(?:view|tmb(?:/|&s=)\d+)(?:/|&file=)(\d+)(?:/|&).*?$#'
107+
'#^.+/([a-zA-Z0-9_-]+)/(?:index\.php(?:/|\?page=))?(?:view|tmb(?:/|&s=)\d+)(?:/|&file=)(\d+)(?:/|&).*?$#'
108108
=> $this->cont['TRUST_PATH'] . 'uploads/xelfinder/' . rawurlencode(rtrim(substr($this->cont['ROOT_URL'], 7), '/')) . '_$1_$2',
109109
);
110110

0 commit comments

Comments
 (0)