Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/LastModified/LastModifiedHooks.php
Ðазад
<?php class LastModifiedHooks { /** * @param OutputPage &$out * @param Skin &$sk * @return bool */ public static function onLastModified( &$out, &$sk ) { global $wgLastModifiedRange; $context = $out->getContext(); $title = $context->getTitle(); // Don't try to proceed if we don't care about the target page if ( !( $title instanceof Title && $title->getNamespace() == 0 && $title->exists() ) ) { return true; } $article = Article::newFromTitle( $title, $context ); if ( $article ) { $timestamp = wfTimestamp( TS_UNIX, $article->getPage()->getTimestamp() ); $out->addMeta( 'http:last-modified', date( 'r', $timestamp ) ); $out->addMeta( 'last-modified-timestamp', $timestamp ); $out->addMeta( 'last-modified-range', $wgLastModifiedRange ); $out->addModules( 'last.modified' ); } return true; } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка