mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-22 08:12:49 -04:00
* fix many "Only booleans are allowed in an if condition" * Update cli/create-user.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Update cli/i18n/I18nUsageValidator.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> * Fix several regressions and other minor things * Fix another regression * Update lib/http-conditional.php Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr> --------- Co-authored-by: Luc <sanchezluc+freshrss@gmail.com> Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
14 lines
450 B
PHP
14 lines
450 B
PHP
<?php
|
|
|
|
class Minz_ExtensionException extends Minz_Exception {
|
|
public function __construct(string $message, string $extension_name = '', int $code = self::ERROR) {
|
|
if ($extension_name !== '') {
|
|
$message = 'An error occurred in `' . $extension_name . '` extension with the message: ' . $message;
|
|
} else {
|
|
$message = 'An error occurred in an unnamed extension with the message: ' . $message;
|
|
}
|
|
|
|
parent::__construct($message, $code);
|
|
}
|
|
}
|