Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/FileImporter/src/Exceptions/LocalizedImportException.php
Ðазад
<?php namespace FileImporter\Exceptions; use MediaWiki\Message\Message; use Throwable; use Wikimedia\Message\MessageSpecifier; /** * Logic has been taken form core class LocalizedException * @todo move logic to a trait in core and use it from there? * * @license GPL-2.0-or-later * @author Addshore */ class LocalizedImportException extends ImportException { /** @var string|array|MessageSpecifier */ protected $messageSpec; /** * @param string|array|MessageSpecifier $messageSpec See Message::newFromSpecifier * @param Throwable|null $previous The previous exception used for the exception chaining. */ public function __construct( $messageSpec, ?Throwable $previous = null ) { $this->messageSpec = $messageSpec; $msg = $this->getMessageObject(); $code = str_replace( 'fileimporter-', '', $msg->getKey() ); if ( $msg->getLanguage()->getCode() !== 'qqx' ) { // Re-use the localizable part for the internal exception message string, but in // canonical English. Appears only in logging/debugging. $msg = $msg->inLanguage( 'en' )->useDatabase( false ); } parent::__construct( $msg->plain(), $code, $previous ); } public function getMessageObject(): Message { return Message::newFromSpecifier( $this->messageSpec ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка