[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Page MenuHomePhabricator

[1.39] Remove the deprecated Skin::getSkinStylePath()
Closed, ResolvedPublic

Description

Added unnecessary burden to core Skin code. It's more easier for every skin to just give the path directly without this indirection

  • soft deprecate
  • Hard deprecate
  • Remove in 1.39

Event Timeline

Change 651312 had a related patch set uploaded (by Ammarpad; owner: Ammarpad):
[mediawiki/core@master] Deprecate Skin::getSkinStylePath()

https://gerrit.wikimedia.org/r/651312

Change 651312 merged by jenkins-bot:
[mediawiki/core@master] Deprecate Skin::getSkinStylePath()

https://gerrit.wikimedia.org/r/651312

Ammarpad triaged this task as Medium priority.Dec 23 2020, 7:00 PM
Jdlrobson raised the priority of this task from Medium to High.Sep 22 2021, 3:22 PM

Work here can now be continued.

Change 722936 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] Hard deprecate Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/722936

Change 722936 merged by jenkins-bot:

[mediawiki/core@master] Hard deprecate Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/722936

Jdlrobson renamed this task from Deprecate Skin::getSkinStylePath() to [1.39] Deprecate Skin::getSkinStylePath().Oct 6 2021, 3:49 PM
Jdlrobson renamed this task from [1.39] Deprecate Skin::getSkinStylePath() to [1.39] Remove the deprecated Skin::getSkinStylePath().
Jdlrobson lowered the priority of this task from High to Low.
Jdlrobson updated the task description. (Show Details)
Bongo-Cat moved this task from Feedback to Feature Request on the Material board.

Is there an alternative to this hook?

@Bongo-Cat what context are you using it in?
For most use cases you can use $this->getConfig()->get( 'StylePath' ) and complete the URL.

e.g.

// old way
$path = $this->getSkinStylePath( $name )
// new way
$path =  $this->getConfig()->get( 'StylePath' ) . "/SkinName/$name";

Change 743005 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/Material@master] Skin::getSkinStylePath() is deprecated

https://gerrit.wikimedia.org/r/743005

Change 743005 merged by jenkins-bot:

[mediawiki/skins/Material@master] Skin::getSkinStylePath() is deprecated

https://gerrit.wikimedia.org/r/743005

Change 777336 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/skins/Metrolook@master] Fix usages of deprecated Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/777336

Change 777338 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/skins/apex@master] Fix usage of deprecated Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/777338

Change 777355 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/core@master] Drop Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/777355

Change 777338 merged by jenkins-bot:

[mediawiki/skins/apex@master] Fix usage of deprecated Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/777338

Change 777358 had a related patch set uploaded (by Ammarpad; author: Ammarpad):

[mediawiki/skins/Timeless@master] Remove $stylename indirection

https://gerrit.wikimedia.org/r/777358

Change 777358 merged by jenkins-bot:

[mediawiki/skins/Timeless@master] Remove $stylename indirection

https://gerrit.wikimedia.org/r/777358

Change 777336 merged by jenkins-bot:

[mediawiki/skins/Metrolook@master] Fix usages of deprecated Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/777336

Change 777355 merged by jenkins-bot:

[mediawiki/core@master] Drop Skin::getSkinStylePath

https://gerrit.wikimedia.org/r/777355