ConsoleCommand
1 month ago
Dimension
1 month ago
API.php
6 months ago
AggregatedMetric.php
2 years ago
ArchivedMetric.php
1 year ago
Archiver.php
1 month ago
Categories.php
2 years ago
ComponentFactory.php
3 months ago
ComputedMetric.php
1 year ago
ConsoleCommand.php
1 month ago
Controller.php
1 month ago
ControllerAdmin.php
2 weeks ago
Dependency.php
1 month ago
LogTablesProvider.php
2 years ago
Manager.php
1 month ago
Menu.php
1 month ago
MetadataLoader.php
1 month ago
Metric.php
1 month ago
PluginException.php
1 year ago
ProcessedMetric.php
3 months ago
ReleaseChannels.php
3 months ago
Report.php
1 month ago
ReportsProvider.php
2 years ago
RequestProcessors.php
4 months ago
Segment.php
3 months ago
SettingsProvider.php
1 month ago
Tasks.php
1 month ago
ThemeStyles.php
2 weeks ago
ViewDataTable.php
3 months ago
Visualization.php
1 year ago
WidgetsProvider.php
3 months ago
PluginException.php
25 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\Plugin; |
| 10 | |
| 11 | use Piwik\Common; |
| 12 | class PluginException extends \Exception |
| 13 | { |
| 14 | public function __construct($pluginName, $message) |
| 15 | { |
| 16 | $pluginName = Common::sanitizeInputValue($pluginName); |
| 17 | $message = Common::sanitizeInputValue($message); |
| 18 | parent::__construct("There was a problem installing the plugin {$pluginName}: <br /><br />\n {$message}\n <br /><br />\n If you want to hide this message you must remove the following line under the [Plugins] entry in your\n 'config/config.ini.php' file to disable this plugin.<br />\n Plugins[] = {$pluginName}\n <br /><br />If this plugin has already been installed, you must add the following line under the\n [PluginsInstalled] entry in your 'config/config.ini.php' file:<br />\n PluginsInstalled[] = {$pluginName}"); |
| 19 | } |
| 20 | public function isHtmlMessage() |
| 21 | { |
| 22 | return \true; |
| 23 | } |
| 24 | } |
| 25 |