Skip to content

Commit f92967a

Browse files
committed
fix linting
1 parent 696ea5e commit f92967a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/Http/Controllers/Backend/WikiReadOnlyController.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,23 @@
77
use Illuminate\Http\Request;
88

99
class WikiReadOnlyController extends Controller {
10+
public function setWikiReadonly(Request $request) {
1011

11-
public function getWikiVersionForDomain(Request $request) {
12-
13-
$domain = $request->query('domain');
12+
$domain = $request->input('domain');
1413
$wiki = Wiki::where('domain', $domain)->first();
1514

1615
if (!$wiki) {
1716
return response()->json([
18-
'error' => 'Wiki not found for domain: ' . $domain
17+
'error' => 'Wiki not found for domain: ' . $domain,
1918
], 404);
2019
}
2120

2221
$wiki->setSetting('wgReadOnly', 'This wiki is currently read-only.');
22+
2323
return response()->json([
2424
'success' => true,
2525
'domain' => $domain,
2626
'message' => 'Wiki set to read-only successfully.',
2727
]);
2828
}
29-
3029
}

0 commit comments

Comments
 (0)