Unverified Commit bce53fee authored by Kevin Duret's avatar Kevin Duret Committed by GitHub
Browse files

enh(platform): remove centreon web path option (#60)

Refs: MON-12893
parent 1152472a
......@@ -46,7 +46,6 @@ $db = new CentreonDB("centstorage");
* false: URIs will correspond to new page (Resource Status)
*/
$useDeprecatedPages = $centreon->user->doesShowDeprecatedPages();
$centreonWebPath = trim($centreon->optGen['oreon_web_path'], '/');
$buildHostUri = function (array $states, array $statuses) use ($resourceController, $buildParameter) {
return $resourceController->buildListingUri(
......@@ -73,7 +72,7 @@ $unhandledState = $buildParameter('unhandled_problems', 'Unhandled');
$acknowledgedState = $buildParameter('acknowledged', 'Acknowledged');
$inDowntimeState = $buildParameter('in_downtime', 'In downtime');
$deprecatedHostListingUri = '/' . $centreonWebPath . '/main.php?p=20202&search=&o=h_';
$deprecatedHostListingUri = '../../main.php?p=20202&search=&o=h_';
// query for DOWN status
$res = $db->query(
......
......@@ -46,7 +46,6 @@ $db = new CentreonDB("centstorage");
* false: URIs will correspond to new page (Resource Status)
*/
$useDeprecatedPages = $centreon->user->doesShowDeprecatedPages();
$centreonWebPath = trim($centreon->optGen['oreon_web_path'], '/');
$buildServiceUri = function (array $states, array $statuses) use ($resourceController, $buildParameter) {
return $resourceController->buildListingUri(
......@@ -74,7 +73,7 @@ $unhandledState = $buildParameter('unhandled_problems', 'Unhandled');
$acknowledgedState = $buildParameter('acknowledged', 'Acknowledged');
$inDowntimeState = $buildParameter('in_downtime', 'In downtime');
$deprecatedServiceListingUri = '/' . $centreonWebPath . '/main.php?p=20201&search=';
$deprecatedServiceListingUri = '../../main.php?p=20201&search=';
// query for CRITICAL state
$res = $db->query(
......
Supports Markdown
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