Skip to content

Commit

Permalink
Add missing check if the file is run from inside DokuWiki
Browse files Browse the repository at this point in the history
  • Loading branch information
michitux committed Mar 30, 2013
1 parent 38b4334 commit 654addc
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _test/mediaindex.test.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<?php

// must be run within Dokuwiki
if (!defined('DOKU_INC')) die();

/**
* Test cases for the media usage index
*
Expand Down
3 changes: 3 additions & 0 deletions _test/mediamove.test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

// must be run within Dokuwiki
if (!defined('DOKU_INC')) die();

/**
* Test cases for the pagemove plugin
*/
Expand Down
3 changes: 3 additions & 0 deletions _test/pagemove.test.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?php

// must be run within Dokuwiki
if (!defined('DOKU_INC')) die();

/**
* Test cases for the pagemove plugin
*/
Expand Down

0 comments on commit 654addc

Please sign in to comment.