speed hax and niceurl forcing from r34

This commit is contained in:
Shish
2011-12-24 14:49:55 +00:00
parent 913bb09cc6
commit 5121e99dbe
4 changed files with 18 additions and 5 deletions

View File

@ -500,9 +500,12 @@ class Image {
$tmpl = str_replace('$filename', $_escape($base_fname), $tmpl);
$tmpl = str_replace('$title', $_escape($config->get_string("title")), $tmpl);
$plte = new ParseLinkTemplateEvent($tmpl, $this);
send_event($plte);
$tmpl = $plte->link;
// nothing seems to use this, sending the event out to 50 exts is a lot of overhead
if(!SPEED_HAX) {
$plte = new ParseLinkTemplateEvent($tmpl, $this);
send_event($plte);
$tmpl = $plte->link;
}
return $tmpl;
}