mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Replace ends_with function with Str:endsWith()
This commit is contained in:
+2
-1
@@ -9,6 +9,7 @@ use App\Models\Settings;
|
||||
use App\Models\Collection;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
/**
|
||||
* Class for reading and writing NZB files on the hard disk,
|
||||
@@ -106,7 +107,7 @@ class NZB
|
||||
$nzbSplitLevel = (int) Settings::settingValue('..nzbsplitlevel');
|
||||
$this->nzbSplitLevel = $nzbSplitLevel ?? 1;
|
||||
$this->siteNzbPath = (string) Settings::settingValue('..nzbpath');
|
||||
if (! ends_with($this->siteNzbPath, '/')) {
|
||||
if (! Str::endsWith($this->siteNzbPath, '/')) {
|
||||
$this->siteNzbPath .= '/';
|
||||
}
|
||||
$this->_nzbCommentString = sprintf(
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
2019-07-31 DariusIII
|
||||
* Chg: Replace ends_with function with Str:endsWith()
|
||||
* Chg: Update laravel/framework (v5.8.29 => v5.8.30) and rest of the used components to their latest version
|
||||
2019-07-30 DariusIII
|
||||
* Chg: Update fontawesome to latest version
|
||||
|
||||
@@ -147,7 +147,7 @@ class ProfileController extends BasePageController
|
||||
break;
|
||||
case 'submit':
|
||||
|
||||
if ($request->has('saburl') && ! ends_with($request->input('saburl'), '/') && trim($request->input('saburl')) !== '') {
|
||||
if ($request->has('saburl') && ! Str::endsWith($request->input('saburl'), '/') && trim($request->input('saburl')) !== '') {
|
||||
$request->merge(['saburl' => $request->input('saburl').'/']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user