X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fresourceloader%2FResourceLoaderFileModule.php;h=725bc6a05e0d54bed5263f2a7fa71525efff288d;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hp=07649e34497a4586ccbe42c0848f9c74cb476200;hpb=fba48c6dae69b7163580d936095b7dd16c9b3644;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/resourceloader/ResourceLoaderFileModule.php b/includes/resourceloader/ResourceLoaderFileModule.php index 07649e3449..725bc6a05e 100644 --- a/includes/resourceloader/ResourceLoaderFileModule.php +++ b/includes/resourceloader/ResourceLoaderFileModule.php @@ -117,9 +117,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { /** @var string Name of group to load this module in */ protected $group; - /** @var string Position on the page to load this module at */ - protected $position = 'bottom'; - /** @var bool Link to raw files in debug mode */ protected $debugRaw = true; @@ -204,8 +201,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { * 'messages' => [array of message key strings], * // Group which this module should be loaded together with * 'group' => [group name string], - * // Position on the page to load this module at - * 'position' => ['bottom' (default) or 'top'] * // Function that, if it returns true, makes the loader skip this module. * // The file must contain valid JavaScript for execution in a private function. * // The file must not contain the "function () {" and "}" wrapper though. @@ -272,7 +267,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { $this->{$member} = $option; break; // Single strings - case 'position': case 'group': case 'skipFunction': $this->{$member} = (string)$option; @@ -445,13 +439,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { return $this->group; } - /** - * @return string - */ - public function getPosition() { - return $this->position; - } - /** * Gets list of names of modules this module depends on. * @param ResourceLoaderContext|null $context @@ -573,7 +560,6 @@ class ResourceLoaderFileModule extends ResourceLoaderModule { // - dependencies (provided via startup module) // - targets // - group (provided via startup module) - // - position (only used by OutputPage) 'scripts', 'debugScripts', 'styles',