mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
Fix empty press-kit (#580)
This commit is contained in:
parent
4d7ea137e4
commit
46148a98d1
1 changed files with 2 additions and 2 deletions
|
@ -278,12 +278,12 @@ class ContentActions extends Actions
|
||||||
foreach (glob(ROOT_DIR . '/web/img/press/*') as $productImgPath) {
|
foreach (glob(ROOT_DIR . '/web/img/press/*') as $productImgPath) {
|
||||||
$imgPathTokens = explode('/', $productImgPath);
|
$imgPathTokens = explode('/', $productImgPath);
|
||||||
$imgName = $imgPathTokens[count($imgPathTokens) - 1];
|
$imgName = $imgPathTokens[count($imgPathTokens) - 1];
|
||||||
$zip->addFile($productImgPath, '/logo_and_product/' . $imgName);
|
$zip->addFile($productImgPath, 'logo_and_product/' . $imgName);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (glob(ContentActions::CONTENT_DIR . '/bio/*.md') as $bioPath) {
|
foreach (glob(ContentActions::CONTENT_DIR . '/bio/*.md') as $bioPath) {
|
||||||
list($metadata, $bioHtml) = View::parseMarkdown($bioPath);
|
list($metadata, $bioHtml) = View::parseMarkdown($bioPath);
|
||||||
$zip->addFile($bioPath, '/team_bios/' . $metadata['name'] . ' - ' . $metadata['role'] . '.txt');
|
$zip->addFile($bioPath, 'team_bios/' . $metadata['name'] . ' - ' . $metadata['role'] . '.txt');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue