port page_matches from score to trunk

git-svn-id: file:///home/shish/svn/shimmie2/trunk@1028 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish
2008-09-06 17:48:03 +00:00
parent 7030727a6d
commit 96a37605e4
33 changed files with 40 additions and 53 deletions

View File

@ -12,7 +12,7 @@ class SVNUpdate implements Extension {
public function receive_event(Event $event) {
if(is_null($this->theme)) $this->theme = get_theme_object($this);
if(($event instanceof PageRequestEvent) && ($event->page_name == "update")) {
if(($event instanceof PageRequestEvent) && $event->page_matches("update")) {
if($event->user->is_admin()) {
if($event->get_arg(0) == "view_changes") {
$this->theme->display_update_todo($event->page,