Skip to content

Commit

Permalink
Fixed issues with uninstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
AIC Web Tech committed Feb 11, 2022
1 parent 797370b commit 149ab49
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
3 changes: 1 addition & 2 deletions app/InstallManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,13 @@ static function uninstall(Request $request) {

$InstalledBibles = Bible::where('installed', 1)->get();
$success = TRUE;
// return TRUE;

foreach($InstalledBibles as $B) {
$B->uninstall();
$success = ($B->hasErrors()) ? FALSE : $success;
}

$exit_code = Artisan::call('migrate:reset'); // Roll back ALL DB migrations
$exit_code = Artisan::call('migrate:reset', array('--force' => TRUE)); // Roll back ALL DB migrations

if(\Schema::hasTable('migrations')) {
\Schema::drop('migrations');
Expand Down
1 change: 1 addition & 0 deletions public/widgets/download/download.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<?php
$downloadable_bibles = 0;
$BibleSuperSearchBibles = (array) $BibleSuperSearchBibles;

foreach($BibleSuperSearchBibles as $bible) {
if($bible['downloadable']) {
Expand Down
9 changes: 0 additions & 9 deletions tests/Feature/Controllers/AdminControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@

class AdminControllerTest extends TestCase
{
// Route::get('/admin/debug', 'AdminController@debug')->name('admin.debug');
// Route::get('/admin/update', 'AdminController@softwareUpdate')->name('admin.update')->middleware('install');
// Route::get('/admin/uninstall', 'AdminController@uninstallPage')->name('admin.uninstall')->middleware('install');
// Route::get('/admin/tos', 'Admin\PostConfigController@tos')->name('admin.tos')->middleware('install');
// Route::post('/admin/tos', 'Admin\PostConfigController@saveTos');
// Route::get('/admin/privacy', 'Admin\PostConfigController@privacy')->name('admin.privacy')->middleware('install');
// Route::post('/admin/privacy', 'Admin\PostConfigController@savePrivacy');

// Route::resource('/admin/bibles', 'Admin\BibleController', ['as' => 'admin']);

public function testBible()
{
Expand Down

0 comments on commit 149ab49

Please sign in to comment.