Skip to content

Commit

Permalink
Automatically remove links on page deletion, otherwise it will fail u…
Browse files Browse the repository at this point in the history
…nder mgd2
  • Loading branch information
flack committed Apr 6, 2012
1 parent 29e9aed commit aabcd46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/net/nemein/wiki/wikipage.php
Expand Up @@ -13,6 +13,11 @@
*/
class net_nemein_wiki_wikipage extends midcom_db_article
{
public $autodelete_dependents = array
(
'net_nemein_wiki_link_dba' => 'frompage'
);

/**
* Overwrite the query builder getter with a version retrieving the right type.
* We need a better solution here in DBA core actually, but it will be difficult to
Expand Down

0 comments on commit aabcd46

Please sign in to comment.