-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for elastic skin #36
Conversation
This patch works only for english users, I changed the regex to be less specific and moved the img between "from" and the address: And it also works with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
|
||
$p['output']['from']['value'] = $this->img_status . $p['output']['from']['value']; | ||
$p['output']['from']['html'] = true; | ||
|
||
return $p; | ||
} | ||
|
||
public function message_summary($p){ | ||
$this->populate_message_headers($GLOBALS['MESSAGE']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didnt look this up in the docs but is using $GLOBALS really required?
|
||
$p['output']['from']['value'] = $this->img_status . $p['output']['from']['value']; | ||
$p['output']['from']['html'] = true; | ||
|
||
return $p; | ||
} | ||
|
||
public function message_summary($p){ | ||
$this->populate_message_headers($GLOBALS['MESSAGE']); | ||
return array('content' => preg_replace('/(<span>\s*)()(From)/', '$1' . $this->img_status . ' $3', $p['content'])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have a look at the comment/regex provided by @photoninger
Closing this PR as support has been added in #37, thanks for your contrib though! |
Tentative fix for #26, adds support for the Elastic skin.