* [task#151393] modify the display of targetFormLabel.

This commit is contained in:
wangzemei
2025-12-02 16:27:35 +08:00
committed by sunhao
parent 30f8ec7665
commit 3286b55bc3
+1 -1
View File
@@ -42,7 +42,7 @@ foreach($prompts as $prompt)
if($prompt->targetForm)
{
$targetFormPath = explode('.', $prompt->targetForm);
if(count($targetFormPath) == 2) $prompt->targetFormLabel = $lang->ai->targetForm[$targetFormPath[0]]['common'] . ' / ' . $lang->ai->targetForm[$targetFormPath[0]][$targetFormPath[1]];
if(count($targetFormPath) == 2) $prompt->targetFormLabel = $prompt->targetForm == 'empty.empty' ? $lang->ai->targetForm[$targetFormPath[0]][$targetFormPath[1]] : $lang->ai->targetForm[$targetFormPath[0]]['common'] . ' / ' . $lang->ai->targetForm[$targetFormPath[0]][$targetFormPath[1]];
}
}