mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
fix обработки ката топика
This commit is contained in:
parent
ff4b0eef3a
commit
b0f0b23d7b
|
@ -389,7 +389,7 @@ class ActionTopic extends Action {
|
|||
$sTestShort=str_replace('[<n>]',"\r\n",$sTestShort);
|
||||
$sTestShort=$this->Text_Parser($sTestShort);
|
||||
$sTestNew=$aMatch[1].' '.$aMatch[3];
|
||||
if (preg_match('/^\s*name\s*=\s*"(.+)"\s*$/Ui',$aMatch[2],$aMatchCut)) {
|
||||
if (preg_match('/^\s*name\s*=\s*"(.+)"\s*\/?$/Ui',$aMatch[2],$aMatchCut)) {
|
||||
$oTopic->setCutText(trim($aMatchCut[1]));
|
||||
}
|
||||
}
|
||||
|
@ -536,7 +536,7 @@ class ActionTopic extends Action {
|
|||
$sTestShort=str_replace('[<n>]',"\r\n",$sTestShort);
|
||||
$sTestShort=$this->Text_Parser($sTestShort);
|
||||
$sTestNew=$aMatch[1].' '.$aMatch[3];
|
||||
if (preg_match('/^\s*name\s*=\s*"(.+)"\s*$/Ui',$aMatch[2],$aMatchCut)) {
|
||||
if (preg_match('/^\s*name\s*=\s*"(.+)"\s*\/?$/Ui',$aMatch[2],$aMatchCut)) {
|
||||
$oTopic->setCutText(trim($aMatchCut[1]));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue