Finally found time to add this to my site!
After making the changes suggested I was getting the following error after clicking delete;
Can't save page 1323: /trash/1323_test_page/: Chosen parent '/trash/' already has a page named '1323_test_page'
The page was still moved to trash though. I removed the following line and that fixed the error;
$page->save();
I didn't try the module before making the changes, but I guess the change to;
$this->pages->trash($page);
calls the save page method anyway?