|
@@ -18,8 +18,8 @@ class Project
|
|
|
}
|
|
|
public static function register()
|
|
|
{
|
|
|
+ $file = self::init();
|
|
|
if (empty(self::$content[DEVER_APP_NAME])) {
|
|
|
- $file = self::init();
|
|
|
self::$content[DEVER_APP_NAME] = array('lang' => DEVER_APP_LANG,'path' => DEVER_APP_PATH,'url' => DEVER_APP_HOST);
|
|
|
self::content($file);
|
|
|
}
|
|
@@ -35,6 +35,9 @@ class Project
|
|
|
public static function content($file)
|
|
|
{
|
|
|
file_put_contents($file, '<?php $project = ' . var_export(self::$content, true) . ';');
|
|
|
+ if (isset(self::$content['manage'])) {
|
|
|
+ \Dever::load('menu', 'manage')->init();
|
|
|
+ }
|
|
|
}
|
|
|
public static function read()
|
|
|
{
|