Browse Source

fixes

pull/11/head
Chris 7 years ago
parent
commit
09276f08fc
  1. 2
      app/Providers/AppServiceProvider.php
  2. 2
      app/Setting.php

2
app/Providers/AppServiceProvider.php

@ -39,6 +39,8 @@ class AppServiceProvider extends ServiceProvider
if(version_compare($app_version, $db_version) == 1) { // app is higher than db, so need to run migrations etc
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
}
} else {
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
}
}
view()->share('alt_bg', $alt_bg);

2
app/Setting.php

@ -168,6 +168,7 @@ class Setting extends Model
$output = '';
$homepage_search = self::fetch('homepage_search');
$search_provider = self::where('key', '=', 'search_provider')->first();
if((bool)$homepage_search && (bool)$search_provider) {
$options = (array)json_decode($search_provider->options);
$name = $options[$search_provider->value];
@ -195,6 +196,7 @@ class Setting extends Model
$output .= Form::close();
$output .= '</div>';
}
}
return $output;
}
}

Loading…
Cancel
Save