Revert "Fix StringBlade errors with a stub file" (#12776)

This reverts parts of commit 165c4fd53c.
This commit is contained in:
Jellyfrog
2021-04-21 23:22:15 +02:00
committed by GitHub
parent 165c4fd53c
commit 3e3aa9077e
5 changed files with 20 additions and 21 deletions

View File

@@ -13,7 +13,6 @@ use Illuminate\Support\Facades\Auth;
use LibreNMS\Config;
use LibreNMS\Util\Graph;
use LibreNMS\Util\Url;
use Wpb\String_Blade_Compiler\Facades\StringBlade as View;
class DeviceController extends Controller
{
@@ -166,7 +165,7 @@ class DeviceController extends Controller
foreach (array_values(Arr::wrap(Config::get('html.device.links'))) as $index => $link) {
$device_links['custom' . ($index + 1)] = [
'icon' => $link['icon'] ?? 'fa-external-link',
'url' => View::make(['template' => $link['url']], ['device' => $device])->__toString(),
'url' => view(['template' => $link['url']], ['device' => $device])->__toString(),
'title' => $link['title'],
'external' => $link['external'] ?? true,
];