Improvements to dockerHub conversions

pull/2/head
Squidly271 2017-08-24 17:49:15 -04:00
parent 65d307df0f
commit 081492dfdf
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -1295,7 +1295,7 @@ case 'convert_docker':
$teststring = substr($teststring,2);
$docker['Description'] = str_replace("&", "&", $docker['Description']);
$teststring = str_replace("\\"."\n"," ",$teststring);
$dockerFile = explode("\n",$teststring);
$volumes = array();
@ -1868,6 +1868,9 @@ case 'statistics':
$templates = readJsonFile($communityPaths['community-templates-info']);
if ( is_array($templates) ) {
$sortOrder['sortBy'] = "RepoName";
$sortOrder['sortDir'] = "Up";
usort($templates,"mySort");
foreach ($templates as $template) {
if ( $template['Deprecated'] ) {
$statistics['totalDeprecated']++;