Skip to content

[4.0] Edit icon frontend #26783

@brianteeman

Description

@brianteeman

On the front end of the site the wrong icon is being displayed for the edit article link. It should be edit but its getting eye-slash

$icon = $article->state ? 'edit' : 'eye-slash';
if (strtotime($article->publish_up) > strtotime(Factory::getDate())
|| ((strtotime($article->publish_down) < strtotime(Factory::getDate())) && $article->publish_down != Factory::getDbo()->getNullDate()))
{
$icon = 'eye-slash';
}

I can't get my head around all the conditionals here and it looks like its related to the date changes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions