Commit a74726b0 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5951-main-inc-files-should-not-be-needed' into '1.4-dev'

Resolve "main.inc files should not be needed."

See merge request fusiondirectory/fd!519
parents b906c01a 58785771
......@@ -549,6 +549,8 @@ class pluglist {
$plugin_dir = $plist->get_path($index);
$plugin = $plist->dirlist[$index];
}
/* Used by get_template_path */
session::set('plugin_dir', $plugin_dir);
try {
if ($forceCleanup) {
......
......@@ -2,7 +2,7 @@
/*
This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Copyright (C) 2003 Cajus Pollmeier
Copyright (C) 2011-2016 FusionDirectory
Copyright (C) 2011-2019 FusionDirectory
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
......@@ -20,7 +20,6 @@
*/
if (!$cleanup) {
session::set('plugin_dir', dirname(__FILE__));
$smarty->assign('iconmenu', $plist->show_iconmenu());
$smarty->assign('header', print_header('geticon.php?context=applications&icon=config-welcome&size=48', sprintf(_('Welcome %s!'), $ui->cn)));
$smarty->assign('year', date('Y'));
......@@ -28,5 +27,3 @@ if (!$cleanup) {
$display = $smarty->fetch(get_template_path('welcome.tpl', TRUE));
}
?>
  • SonarQube analysis indicates that quality gate is failed.

    • Security Rating on New Code is passed: Actual value 1
    • Reliability Rating on New Code is failed: Actual value 3 > 1
    • Maintainability Rating on New Code is passed: Actual value 1
    • Duplicated Lines on New Code (%) is passed: Actual value 3.3625057577153386

    SonarQube analysis reported no issues.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment