* Finish task#8117.

This commit is contained in:
leiyong
2020-10-14 10:37:41 +08:00
parent 7eecf4b27f
commit 984e782595
7 changed files with 119 additions and 35 deletions
+3
View File
@@ -339,6 +339,7 @@ class programModel extends model
->stripTags($this->config->program->editor->pgmedit['id'], $this->config->allowedTags)
->remove('uid')
->get();
if(!isset($project->whitelist) or $project->acl != 'custom') $project->whitelist = '';
$program = $this->loadModel('file')->processImgURL($program, $this->config->program->editor->pgmedit['id'], $this->post->uid);
$children = $this->getChildren($programID);
@@ -1132,6 +1133,8 @@ class programModel extends model
->remove('longTime')
->get();
if(!isset($project->whitelist) or $project->acl != 'custom') $project->whitelist = '';
if($project->parent)
{
$parentProgram = $this->dao->select('*')->from(TABLE_PROGRAM)->where('id')->eq($project->parent)->fetch();