Skip to content

Fix unwatch icon#1

Open
Damillora wants to merge 2 commits intothemachinist:masterfrom
Damillora:master
Open

Fix unwatch icon#1
Damillora wants to merge 2 commits intothemachinist:masterfrom
Damillora:master

Conversation

@Damillora
Copy link
Copy Markdown

Does not show on my MediaWiki 1.23.2

Spits out error message Undefined index (icon_class) instead

thegroxempire999 added 2 commits August 16, 2014 13:50
Does not show on my MediaWiki 1.23.2
The more elegant workaround: class="fa fa-eye"
@themachinist
Copy link
Copy Markdown
Owner

hey grox. i actually didnt add an icon to the unwatch button. there is a function in DiscourseSkin.skin.php named insertIcons(). if we add a line that looks like this:

$this->addKeyToArrayIfExist( $this->data['content_navigation']['actions']['unwatch'], 'icon_class', "fa-eye" );

it should add the eye icon. i will add a commit with this change.

@themachinist
Copy link
Copy Markdown
Owner

4e5765d

@Damillora
Copy link
Copy Markdown
Author

I got more errors after installing the Echo extension (probably this isn't the cause)
Probably need to file an issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants