Skip to content

Commit 2850194

Browse files
authored
Merge pull request #172 from CHBMB/master
Add StartPage support
2 parents 42a50b1 + c5c1a68 commit 2850194

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

app/Setting.php

+3
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ public static function search()
202202
$url = 'https://www.bing.com/search';
203203
$var = 'q';
204204
break;
205+
case 'startpage':
206+
$url = 'https://www.startpage.com/';
207+
$var = 'q';
205208
}
206209
$output .= '<div class="searchform">';
207210
$output .= Form::open(['url' => $url, 'method' => 'get']);

database/seeds/SettingsSeeder.php

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function run()
9191
'google' => 'app.options.google',
9292
'ddg' => 'app.options.ddg',
9393
'bing' => 'app.options.bing'
94+
'startpage' => 'app.options.startpage'
9495
]);
9596

9697
if(!$setting = Setting::find(4)) {

resources/lang/en/app.php

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'options.google' => 'Google',
3434
'options.ddg' => 'DuckDuckGo',
3535
'options.bing' => 'Bing',
36+
'options.startpage' => 'StartPage',
3637
'options.yes' => 'Yes',
3738
'options.no' => 'No',
3839

0 commit comments

Comments
 (0)