Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/FileImporter/src/VisualEditorHooks.php
Ðазад
<?php namespace FileImporter; use MediaWiki\Extension\VisualEditor\VisualEditorBeforeEditorHook; use MediaWiki\Output\OutputPage; use MediaWiki\Title\Title; use Skin; /** * All hooks from the VisualEditor extension which is optional to use with this extension. * @license GPL-2.0-or-later */ class VisualEditorHooks implements VisualEditorBeforeEditorHook { /** * Same parameters as {@see \MediaWiki\Hook\BeforePageDisplayHook}. */ public function onVisualEditorBeforeEditor( OutputPage $output, Skin $skin ): bool { // The context gets changed to be that of a file page in WikiEditor::runEditFormInitialHook // so re-construct the original title from the request. $requestTitle = Title::newFromText( $output->getRequest()->getVal( 'title' ) ); return !$requestTitle || !$requestTitle->isSpecial( 'ImportFile' ); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка