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