1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed "Clean Server Error Log" button showing if no error logs

Discussion in 'Resolved Bug Reports' started by Vincent, Jan 29, 2012.

  1. Vincent

    Vincent Well-Known Member

    Hello,

    Was looking around in the ACP today and I noticed that the "Clear Server Error Log" (The button that deletes all your error logs) shows if no errors are logged.

    Because XenForo is close to perfect, I found this not worth not mentioning :)

    To fix, change in Admin Templates in the template log_server_error
    Code:
    <xen:topctrl><a href="{xen:adminlink logs/server-error/clear}" class="button OverlayTrigger">{xen:phrase clear_server_error_log}</a></xen:topctrl>
    to

    Code:
    <xen:if is="{xen:count $entries} > 0">
        <xen:topctrl><a href="{xen:adminlink logs/server-error/clear}" class="button OverlayTrigger">{xen:phrase clear_server_error_log}</a></xen:topctrl>
    </xen:if>
     
    Alien, Andrej and Romchik® like this.
  2. ibnesayeed

    ibnesayeed Well-Known Member

    I believe it is more of a suggestion than a bug. :)
     
  3. Vincent

    Vincent Well-Known Member

    Yep, but it's still partially a bug, so it belongs here.
     
  4. Mike

    Mike XenForo Developer Staff Member

    Not really a bug, but might as well change it.
     
    Alien and Vincent like this.

Share This Page