Browse Source

Update channelunit.helper.php

tags/6.2.9
叙述、别离 10 months ago
parent
commit
3777e7fcf4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/system/helpers/channelunit.helper.php

+ 2
- 2
src/system/helpers/channelunit.helper.php View File

@@ -228,8 +228,8 @@ if (!function_exists('GetFileName')) {
}
$articleRule = str_replace($arr_rpsource, $arr_rpvalues, $articleRule);
if (preg_match("/\{p/", $articleRule)) {
$articleRule = str_replace('{pinyin}', GetPinyin($title).'_'.$aid, $articleRule);
$articleRule = str_replace('{py}', GetPinyin($title, 1).'_'.$aid, $articleRule);
$articleRule = str_replace('{pinyin}', GetPinyin($title).'-'.$aid, $articleRule);
$articleRule = str_replace('{py}', GetPinyin($title, 1).'-'.$aid, $articleRule);
}
$articleUrl = '/'.preg_replace("/^\//", '', $articleRule);
if (preg_match("/index\.html/", $articleUrl) && $cfg_arc_dirname == 'Y') {


Loading…
Cancel
Save