projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Can overload the xface generation using a custom image
[banana.git]
/
banana
/
message.inc.php
diff --git
a/banana/message.inc.php
b/banana/message.inc.php
index
ed733d1
..
ff08fd3
100644
(file)
--- a/
banana/message.inc.php
+++ b/
banana/message.inc.php
@@
-248,11
+248,16
@@
final class BananaMessage extends BananaMimePart
public function hasXFace()
{
public function hasXFace()
{
- return Banana::$msgshow_xface && isset($this->headers['x-face']);
+ return Banana::$msgshow_xface &&
+ ((function_exists('hook_hasxface') && hook_hasXFace($this->headers))
+ || isset($this->headers['x-face']));
}
public function getXFace()
{
}
public function getXFace()
{
+ if (function_exists('hook_getxface') && hook_getXFace($this->headers)) {
+ return;
+ }
header('Content-Type: image/gif');
$xface = $this->headers['x-face'];
passthru('echo ' . escapeshellarg($xface)
header('Content-Type: image/gif');
$xface = $this->headers['x-face'];
passthru('echo ' . escapeshellarg($xface)