Browse Source

Merge pull request #172 from CHBMB/master

Add StartPage support
pull/177/head 1.4.10
KodeStar 7 years ago
committed by GitHub
parent
commit
28501944c5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/Setting.php
  2. 1
      database/seeds/SettingsSeeder.php
  3. 1
      resources/lang/en/app.php

3
app/Setting.php

@ -202,6 +202,9 @@ class Setting extends Model
$url = 'https://www.bing.com/search';
$var = 'q';
break;
case 'startpage':
$url = 'https://www.startpage.com/';
$var = 'q';
}
$output .= '<div class="searchform">';
$output .= Form::open(['url' => $url, 'method' => 'get']);

1
database/seeds/SettingsSeeder.php

@ -91,6 +91,7 @@ class SettingsSeeder extends Seeder
'google' => 'app.options.google',
'ddg' => 'app.options.ddg',
'bing' => 'app.options.bing'
'startpage' => 'app.options.startpage'
]);
if(!$setting = Setting::find(4)) {

1
resources/lang/en/app.php

@ -33,6 +33,7 @@ return [
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.startpage' => 'StartPage',
'options.yes' => 'Yes',
'options.no' => 'No',

Loading…
Cancel
Save