diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-05-10 15:49:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-05-10 15:49:53 +0200 |
commit | 1419a485e3ac0c507ef073f0b816bd41f7e4a5cd (patch) | |
tree | 4f3980583bb25a521b44fdd758d60309fd5df477 /inc/changelog.php | |
parent | 811653d71565cce94ca1b27f4cdebc60769e2d11 (diff) | |
download | rpg-1419a485e3ac0c507ef073f0b816bd41f7e4a5cd.tar.gz rpg-1419a485e3ac0c507ef073f0b816bd41f7e4a5cd.tar.bz2 |
log deprecated function calls FS#2399
This introduces a new dbg_deprecated() function which allows for easy
marking of deprecated functions. Each call is logged to the debuglog
when debuggin is enabled.
Diffstat (limited to 'inc/changelog.php')
-rw-r--r-- | inc/changelog.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/changelog.php b/inc/changelog.php index de06c9683..f0788d896 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -1004,12 +1004,13 @@ class MediaChangelog extends ChangeLog { * changelog files, only the chunk containing the * requested changelog line is read. * - * @deprecated 20-11-2013 + * @deprecated 2013-11-20 * * @author Ben Coburn <btcoburn@silicodon.net> * @author Kate Arzamastseva <pshns@ukr.net> */ function getRevisionInfo($id, $rev, $chunk_size = 8192, $media = false) { + dbg_deprecated('class PageChangeLog or class MediaChanglog'); if($media) { $changelog = new MediaChangeLog($id, $chunk_size); } else { @@ -1036,12 +1037,13 @@ function getRevisionInfo($id, $rev, $chunk_size = 8192, $media = false) { * backwards in chunks until the requested number of changelog * lines are recieved. * - * @deprecated 20-11-2013 + * @deprecated 2013-11-20 * * @author Ben Coburn <btcoburn@silicodon.net> * @author Kate Arzamastseva <pshns@ukr.net> */ function getRevisions($id, $first, $num, $chunk_size = 8192, $media = false) { + dbg_deprecated('class PageChangeLog or class MediaChanglog'); if($media) { $changelog = new MediaChangeLog($id, $chunk_size); } else { |