Skip to content

Commit

Permalink
[plugin:ref] support X-elFinder with Coll-URI on XCL 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed May 4, 2014
1 parent 36ee2da commit 492ec77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xpwiki/plugin/ref.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function plugin_ref_init () {
// サイト内画像のローカルファイルパス変換テーブル
$this->conf['local_dir_mapper'] = array(
// xelfinder
'#^.+/([a-zA-Z0-9_-]+)/index\.php(?:/|\?page=)(?:view|tmb(?:/|&s=)\d+)(?:/|&file=)(\d+)(?:/|&).*?$#'
'#^.+/([a-zA-Z0-9_-]+)/(?:index\.php(?:/|\?page=))?(?:view|tmb(?:/|&s=)\d+)(?:/|&file=)(\d+)(?:/|&).*?$#'
=> $this->cont['TRUST_PATH'] . 'uploads/xelfinder/' . rawurlencode(rtrim(substr($this->cont['ROOT_URL'], 7), '/')) . '_$1_$2',
);

Expand Down

0 comments on commit 492ec77

Please sign in to comment.