Ejemplo n.º 1
0
 public static function init()
 {
     if (is_null(self::$roost)) {
         self::$roost = new self();
         self::add_actions();
         $roost_settings = self::roost_settings();
         if (empty($roost_settings) || self::$roost_version !== $roost_settings['version']) {
             self::install($roost_settings);
         }
     }
     return self::$roost;
 }