1
0

show readme for books

This commit is contained in:
2020-01-23 12:14:13 +01:00
parent f3815c1d1c
commit 2e2d4a0d84
14 changed files with 561 additions and 37 deletions

View File

@@ -251,22 +251,14 @@ class Programs implements IWebsiteModule
{
if (!file_exists($eipath)) return ['result'=>'err', 'message' => 'Extra-Image not found ' . $prog['name'], 'long' => $eipath];
}
if (!file_exists($prog['preview_path'])) $warn = ['result'=>'warn', 'message' => 'Preview not found ' . $prog['name']];
}
if ($warn != null) return $warn;
return ['result'=>'ok', 'message' => ''];
}
public function checkThumbnails()
{
foreach ($this->staticData as $prog)
{
if (!file_exists($prog['preview_path'])) return ['result'=>'err', 'message' => 'Preview not found ' . $prog['name']];
}
return ['result'=>'ok', 'message' => ''];
}
public function createPreview($prog)
{
$src = $prog['mainimage_path'];