Consolidate DB version code (#13111)

* Consilidate DB version
and don't use dbConnected() function

* cleanup imports
This commit is contained in:
Tony Murray
2021-08-09 18:33:31 -05:00
committed by GitHub
parent 2b8eb74b7a
commit 5d691dc375
4 changed files with 10 additions and 4 deletions

View File

@@ -49,9 +49,9 @@ use App\Models\Syslog;
use App\Models\Vlan;
use App\Models\Vrf;
use App\Models\WirelessSensor;
use DB;
use Illuminate\Http\Request;
use LibreNMS\Config;
use LibreNMS\DB\Eloquent;
use LibreNMS\Util\Version;
class AboutController extends Controller
@@ -71,7 +71,7 @@ class AboutController extends Controller
'project_name' => Config::get('project_name'),
'version_local' => $version->local(),
'version_mysql' => current(DB::selectOne('select version()')),
'version_mysql' => Eloquent::version(),
'version_php' => phpversion(),
'version_laravel' => App::VERSION(),
'version_python' => Version::python(),