Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen committed Jun 9, 2022
2 parents 89e4a04 + f943c1d commit 4035a88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions upload/modules/Resources/pages/resources/resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -1867,6 +1867,8 @@
$categories = DB::getInstance()->get('resources_categories', ['id', '<>', $resource->category_id]);
if (!$categories->count()) {
$smarty->assign('NO_CATEGORIES', $resource_language->get('resources', 'no_categories_available'));
} else {
$smarty->assign('CATEGORIES', $categories->results());
}

if(Input::exists()){
Expand Down Expand Up @@ -1913,8 +1915,7 @@
'CONFIRM_CANCEL' => $language->get('general', 'confirm_cancel'),
'CANCEL_LINK' => URL::build('/resources/resource/' . $resource->id . '-' . Util::stringToURL($resource->name)),
'SUBMIT' => $language->get('general', 'submit'),
'MOVE_TO' => $resource_language->get('resources', 'move_to'),
'CATEGORIES' => $categories
'MOVE_TO' => $resource_language->get('resources', 'move_to')
]);

$template_file = 'resources/move.tpl';
Expand Down
4 changes: 2 additions & 2 deletions upload/modules/Resources/pages/user/resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@
'author_style' => $author->getGroupStyle(),
'author_link' => $author->getProfileURL(),
'latest_version' => Output::getClean($resource->version),
'updated' => $timeago->inWords(date('d M Y, H:i', $resource->updated), $language),
'updated_full' => date('d M Y, H:i', $resource->updated),
'updated' => $timeago->inWords($resource->updated, $language),
'updated_full' => date(DATE_FORMAT, $resource->updated),
'link' => URL::build('/resources/resource/' . Output::getClean($resource->id) . '-' . Util::stringToURL($resource->name))
];
}
Expand Down

0 comments on commit 4035a88

Please sign in to comment.