Skip to content

Commit

Permalink
fix notice error (plugin: ref)
Browse files Browse the repository at this point in the history
ref プラグインでサイト内ファイル参照時の Notice エラーを修正。
  • Loading branch information
nao-pon committed Jun 22, 2012
1 parent b61b7a4 commit ef1755b
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
Expand Up @@ -513,7 +513,7 @@ function get_body($args, $inline = false){
$lvar['alt'] = array();
}

$_filename = (preg_match('/([^\/]+)$/', $lvar['status']['org_fname']? $lvar['status']['org_fname'] : mb_convert_encoding(rawurldecode($lvar['name']), $this->cont['SOURCE_ENCODING'], 'AUTO'), $match))? $match[1] : '';
$_filename = (preg_match('/([^\/]+)$/', (isset($lvar['status']) && $lvar['status']['org_fname'])? $lvar['status']['org_fname'] : mb_convert_encoding(rawurldecode($lvar['name']), $this->cont['SOURCE_ENCODING'], 'AUTO'), $match))? $match[1] : '';
if (in_array('name', $this->conf['imgTitles'])) $lvar['title'][] = $_filename;
if (in_array('name', $this->conf['imgAlts'])) $lvar['alt'][] = $_filename;

Expand Down

0 comments on commit ef1755b

Please sign in to comment.