1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-01 05:55:02 +03:00

fix обработки ката топика

This commit is contained in:
Mzhelskiy Maxim 2009-04-26 15:49:01 +00:00
parent ff4b0eef3a
commit b0f0b23d7b

View file

@ -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]));
}
}