[danbooru api] bugfix for page_name -> page_matches
git-svn-id: file:///home/shish/svn/shimmie2/trunk@1050 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
73c88716a8
commit
bbb4de4bac
@ -14,6 +14,9 @@ find_posts - sort of works, filename is returned as the original filename and pr
|
|||||||
find_tags - id, name, and after_id all work but the tags parameter is ignored just like danbooru 1.0 ignores it
|
find_tags - id, name, and after_id all work but the tags parameter is ignored just like danbooru 1.0 ignores it
|
||||||
|
|
||||||
CHANGELOG
|
CHANGELOG
|
||||||
|
17-SEP-08 10:00PM CST - JJS
|
||||||
|
Bugfix for changed page name checker in PageRequestEvent
|
||||||
|
|
||||||
13-APR-08 10:00PM CST - JJS
|
13-APR-08 10:00PM CST - JJS
|
||||||
Properly escape the tags returned in find_tags and find_posts - Caught by ATravelingGeek
|
Properly escape the tags returned in find_tags and find_posts - Caught by ATravelingGeek
|
||||||
Updated extension info to be a bit more clear about its purpose
|
Updated extension info to be a bit more clear about its purpose
|
||||||
@ -44,7 +47,7 @@ class DanbooruApi implements Extension
|
|||||||
public function receive_event(Event $event)
|
public function receive_event(Event $event)
|
||||||
{
|
{
|
||||||
// Check if someone is accessing /api/danbooru (us)
|
// Check if someone is accessing /api/danbooru (us)
|
||||||
if(($event instanceof PageRequestEvent) && ($event->page_name == "api") && ($event->get_arg(0) == 'danbooru'))
|
if(($event instanceof PageRequestEvent) && ($event->page_matches("api")) && ($event->get_arg(0) == 'danbooru'))
|
||||||
{
|
{
|
||||||
// execute the danbooru processing code
|
// execute the danbooru processing code
|
||||||
$this->api_danbooru($event);
|
$this->api_danbooru($event);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user