Skip to content
2 changes: 2 additions & 0 deletions plugins/Diagnostics/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

namespace Piwik\Plugins\Diagnostics;

use Piwik\Config;
use Piwik\Piwik;
use Piwik\Plugin\SettingsProvider;

Expand Down Expand Up @@ -39,6 +40,7 @@ public function configfile()

return $this->renderTemplate('configfile', array(
'allConfigValues' => $configValues,
'configFilePath' => Config::getInstance()->getLocalPath(),
));
}

Expand Down
1 change: 1 addition & 0 deletions plugins/Diagnostics/templates/configfile.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
<div
vue-entry="Diagnostics.ConfigFile"
all-config-values="{{ allConfigValues|json_encode }}"
config-file-path="{{ configFilePath|json_encode }}"
></div>
{% endblock %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 7 additions & 3 deletions plugins/Diagnostics/vue/dist/Diagnostics.umd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/Diagnostics/vue/dist/Diagnostics.umd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion plugins/Diagnostics/vue/src/ConfigFile/ConfigFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ export default defineComponent({
type: Object,
required: true,
},
configFilePath: {
type: String,
required: true,
},
},
components: {
ContentBlock,
Expand Down Expand Up @@ -147,7 +151,7 @@ export default defineComponent({
configFileIntro() {
return translate(
'Diagnostics_ConfigFileIntroduction',
'<code>"config/config.ini.php"</code>',
`<code>"${Matomo.helper.htmlEntities(this.configFilePath)}"</code>`,
);
},
},
Expand Down
5 changes: 2 additions & 3 deletions tests/PHPUnit/proxy/includes.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

if (!defined('PIWIK_INCLUDE_PATH')) {
// NOTE: PIWIK_INCLUDE_PATH must end in '/' or some parts of matomo will break
define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . '/../../..') . '/');
define('PIWIK_INCLUDE_PATH', realpath(dirname(__FILE__) . '/../../..'));
}

if (!defined('PIWIK_USER_PATH')) {
Expand All @@ -14,7 +13,7 @@

$GLOBALS['MATOMO_PLUGIN_DIRS'] = array(
array(
'pluginsPathAbsolute' => realpath(PIWIK_INCLUDE_PATH . 'tests/resources/custompluginsdir'),
'pluginsPathAbsolute' => realpath(PIWIK_INCLUDE_PATH . '/tests/resources/custompluginsdir'),
'webrootDirRelativeToMatomo' => '../../resources/custompluginsdir'
),
);
Expand Down
4 changes: 2 additions & 2 deletions tests/PHPUnit/proxy/nodispatchnotinstalled.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

require realpath(dirname(__FILE__)) . "/includes.php";
$testEnvironment = new TestingEnvironmentVariables();
$testEnvironment->configFileLocal = PIWIK_INCLUDE_PATH . "tmp/test.config.ini.php";
$testEnvironment->configFileLocal = PIWIK_INCLUDE_PATH . "/tmp/test.config.ini.php";
$testEnvironment->save();

Environment::setGlobalEnvironmentManipulator(new TestingEnvironmentManipulator($testEnvironment));

include PIWIK_INCLUDE_PATH . '/index.php';
include PIWIK_INCLUDE_PATH . '/index.php';
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading