dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
resourceloader: Improve titleInfo docs and simplify title key
[lhc/web/wiklou.git]
/
includes
/
resourceloader
/
ResourceLoaderModule.php
diff --git
a/includes/resourceloader/ResourceLoaderModule.php
b/includes/resourceloader/ResourceLoaderModule.php
index
a6ec72a
..
8bf7170
100644
(file)
--- a/
includes/resourceloader/ResourceLoaderModule.php
+++ b/
includes/resourceloader/ResourceLoaderModule.php
@@
-327,16
+327,6
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
return 'local';
}
return 'local';
}
- /**
- * From where in the page HTML should this module be loaded?
- *
- * @deprecated since 1.29 Obsolete. All modules load async from `<head>`.
- * @return string
- */
- public function getPosition() {
- return 'top';
- }
-
/**
* Whether this module's JS expects to work without the client-side ResourceLoader module.
* Returning true from this function will prevent mw.loader.state() call from being
/**
* Whether this module's JS expects to work without the client-side ResourceLoader module.
* Returning true from this function will prevent mw.loader.state() call from being
@@
-630,7
+620,7
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
* 'https://example.org/image.png' => [ 'as' => 'image' ],
* ];
* }
* 'https://example.org/image.png' => [ 'as' => 'image' ],
* ];
* }
- * @encode
+ * @en
d
code
*
* @par Example using HiDPI image variants
* @code
*
* @par Example using HiDPI image variants
* @code
@@
-646,7
+636,7
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
* ],
* ];
* }
* ],
* ];
* }
- * @encode
+ * @en
d
code
*
* @see ResourceLoaderModule::getHeaders
* @since 1.30
*
* @see ResourceLoaderModule::getHeaders
* @since 1.30
@@
-1069,9
+1059,9
@@
abstract class ResourceLoaderModule implements LoggerAwareInterface {
* @return int UNIX timestamp
*/
protected static function safeFilemtime( $filePath ) {
* @return int UNIX timestamp
*/
protected static function safeFilemtime( $filePath ) {
-
MediaWiki
\suppressWarnings();
+
Wikimedia
\suppressWarnings();
$mtime = filemtime( $filePath ) ?: 1;
$mtime = filemtime( $filePath ) ?: 1;
-
MediaWiki
\restoreWarnings();
+
Wikimedia
\restoreWarnings();
return $mtime;
}
return $mtime;
}