File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
login-system/protected/modules/setup/controllers
simple-blog/protected/modules/setup/controllers
simple-cms/protected/modules/setup/controllers Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ public function readyAction()
466
466
$ enable = isset ($ modValue ['enable ' ]) ? (bool )$ modValue ['enable ' ] : false ;
467
467
if ($ enable && !empty ($ module )) {
468
468
$ modulePath = '/protected/modules/ ' . htmlspecialchars ($ module ) . '/ ' ;
469
- $ xml = simplexml_load_file ( APPHP_PATH . $ modulePath . 'info.xml ' );
469
+ $ xml = simplexml_load_string ( file_get_contents ( APPHP_PATH . $ modulePath. 'info.xml ' ) );
470
470
if (is_object ($ xml )) {
471
471
$ sqlDumpFile = isset ($ xml ->files ->data ->install ) ? $ xml ->files ->data ->install : '' ;
472
472
$ sqlDump = file (APPHP_PATH . $ modulePath . 'data/ ' . $ sqlDumpFile );
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ public function readyAction()
441
441
$ enable = isset ($ modValue ['enable ' ]) ? (bool )$ modValue ['enable ' ] : false ;
442
442
if ($ enable && !empty ($ module )) {
443
443
$ modulePath = '/protected/modules/ ' . htmlspecialchars ($ module ) . '/ ' ;
444
- $ xml = simplexml_load_file ( APPHP_PATH . $ modulePath . 'info.xml ' );
444
+ $ xml = simplexml_load_string ( file_get_contents ( APPHP_PATH . $ modulePath. 'info.xml ' ) );
445
445
if (is_object ($ xml )) {
446
446
$ sqlDumpFile = isset ($ xml ->files ->data ->install ) ? $ xml ->files ->data ->install : '' ;
447
447
$ sqlDump = file (APPHP_PATH . $ modulePath . 'data/ ' . $ sqlDumpFile );
Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ public function readyAction()
441
441
$ enable = isset ($ modValue ['enable ' ]) ? (bool )$ modValue ['enable ' ] : false ;
442
442
if ($ enable && !empty ($ module )) {
443
443
$ modulePath = '/protected/modules/ ' . htmlspecialchars ($ module ) . '/ ' ;
444
- $ xml = simplexml_load_file ( APPHP_PATH . $ modulePath . 'info.xml ' );
444
+ $ xml = simplexml_load_string ( file_get_contents ( APPHP_PATH . $ modulePath. 'info.xml ' ) );
445
445
if (is_object ($ xml )) {
446
446
$ sqlDumpFile = isset ($ xml ->files ->data ->install ) ? $ xml ->files ->data ->install : '' ;
447
447
$ sqlDump = file (APPHP_PATH . $ modulePath . 'data/ ' . $ sqlDumpFile );
You can’t perform that action at this time.
0 commit comments