File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22 "name" : " leafs/cli" ,
33 "description" : " A simple command line tool for installing and interacting with your leaf apps" ,
44 "homepage" : " https://cli.leafphp.dev" ,
5- "version" : " v2.11.0 " ,
5+ "version" : " v2.11.1 " ,
66 "keywords" : [
77 " leaf" ,
88 " php" ,
Original file line number Diff line number Diff line change 1515$ action = $ _GET ['action ' ] ?? null ;
1616
1717if ($ action === 'getConfig ' ) {
18- $ config = __DIR__ . '/ui.config.json ' ;
18+ $ config = dirname ( __DIR__ , 4 ) . '/ui.config.json ' ;
1919
2020 if (!file_exists ($ config )) {
2121 touch ($ config );
3535}
3636
3737if ($ action === 'setConfig ' ) {
38- $ configFile = __DIR__ . '/ui.config.json ' ;
38+ $ configFile = dirname ( __DIR__ , 4 ) . '/ui.config.json ' ;
3939 $ config = file_get_contents ($ configFile );
4040 $ config = json_decode ($ config , true );
4141 $ config = array_merge ($ config , getData ('data ' )['data ' ] ?? []);
6363 $ appInfo = getData ('data ' )['data ' ] ?? '{} ' ;
6464 $ appInfo = json_decode ($ appInfo , true );
6565
66- $ config = __DIR__ . '/ui.config.json ' ;
66+ $ config = dirname ( __DIR__ , 4 ) . '/ui.config.json ' ;
6767 $ applicationConfig = file_get_contents ($ config );
6868 $ applicationConfig = json_decode ($ applicationConfig , true );
6969
Original file line number Diff line number Diff line change 1111$ action = $ _GET ['action ' ] ?? null ;
1212
1313if ($ action === 'getConfig ' ) {
14- $ config = __DIR__ . '/ui.config.json ' ;
14+ $ config = dirname ( __DIR__ , 4 ) . '/ui.config.json ' ;
1515
1616 if (!file_exists ($ config )) {
1717 touch ($ config );
3131}
3232
3333if ($ action === 'setConfig ' ) {
34- $ configFile = __DIR__ . '/ui.config.json ' ;
34+ $ configFile = dirname ( __DIR__ , 4 ) . '/ui.config.json ' ;
3535 $ config = file_get_contents ($ configFile );
3636 $ config = json_decode ($ config , true );
3737 $ config = array_merge ($ config , getData ('data ' )['data ' ] ?? []);
5959 $ appInfo = getData ('data ' )['data ' ] ?? '{} ' ;
6060 $ appInfo = json_decode ($ appInfo , true );
6161
62- $ config = __DIR__ . '/ui.config.json ' ;
62+ $ config = dirname ( __DIR__ , 4 ) . '/ui.config.json ' ;
6363 $ applicationConfig = file_get_contents ($ config );
6464 $ applicationConfig = json_decode ($ applicationConfig , true );
6565
You can’t perform that action at this time.
0 commit comments