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

Lack of Interest Create getter methods for hardcoded last_activity time frames in cronjobs

Discussion in 'Closed Suggestions' started by ragtek, Apr 15, 2012.

  1. ragtek

    ragtek Guest

    I'd like to change the last_activity time frames in the cronjobs, but it's not possible without editing the file because it's a static method (or changing the cronjob in acp and run a own method, which is IMO also ugly:p )

    a getter method would probably also not work becuase of the static usage, but what about a option?
    this could be overwriten by an add-on

    promotion => 'last_activity' => array('>', XenForo_Application::$time - 86400 * 3)
    trophy: 'last_activity' => array('>', XenForo_Application::$time - 86400)

Share This Page