Exemplo n.º 1
0
 /**
  * Includes the options file.
  * If the option file doesn't exist, the rebuild of it is started.
  * 
  * @param	string		$filename
  */
 protected function loadOptions($filename = null, $packageID = 1)
 {
     if ($filename === null) {
         $filename = WCF_DIR . 'options.inc.php';
     }
     // create options file if doesn't exist
     if (!file_exists($filename) || filemtime($filename) <= 1) {
         \wcf\data\option\OptionEditor::rebuildFile($filename, $packageID);
     }
     require_once $filename;
 }