Improve strings for custom CSS

This commit is contained in:
Hyleus
2017-12-22 10:15:19 +01:00
parent 3abc0e22e7
commit 4d459cc1bb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -181,7 +181,7 @@ class UserController extends Controller
$user->style = (int)Request::get('theme');
$css_url = Request::get('custom_css');
if (isset($css_url) && filter_var($css_url, FILTER_VALIDATE_URL) === false) {
return redirect()->back()->with(Toastr::warning('The CSS URL is invalid!', 'Error', ['options']));
return redirect()->back()->with(Toastr::warning('The URL for the external CSS stylesheet is invalid, try it again with a valid URL.', 'Error', ['options']));
} else {
$user->custom_css = $css_url;
}
+2 -2
View File
@@ -59,8 +59,8 @@
<br>
<br>
<div class="form-group">
<label for="custom_css" class="control-label">Custom CSS URL</label>
<input type="text" name="custom_css" class="form-control" value="@if($user->custom_css) {{ $user->custom_css }} @else @endif" placeholder="Custom CSS URL">
<label for="custom_css" class="control-label">External CSS Stylesheet</label>
<input type="text" name="custom_css" class="form-control" value="@if($user->custom_css) {{ $user->custom_css }}@endif" placeholder="CSS URL">
</div>
<h3>Privacy Settings</h3>