X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPostDebug%2FPostDebugPlugin.php;h=cfeb81cf2acf6f45fe2bb3dd2e133daa86cd9162;hb=201ec889166536f92b55df568b0ff944d0db000b;hp=48fe28eabd5248be128efa8e26436577c3e3ba4f;hpb=b6e5d4ecc39aa0ee8618e2907aa3ad8f4e9af8a5;p=quix0rs-gnu-social.git diff --git a/plugins/PostDebug/PostDebugPlugin.php b/plugins/PostDebug/PostDebugPlugin.php index 48fe28eabd..cfeb81cf2a 100644 --- a/plugins/PostDebug/PostDebugPlugin.php +++ b/plugins/PostDebug/PostDebugPlugin.php @@ -48,13 +48,14 @@ class PostDebugPlugin extends Plugin } } - public function onPluginVersion(&$versions) + public function onPluginVersion(array &$versions) { $versions[] = array('name' => 'PostDebug', - 'version' => STATUSNET_VERSION, + 'version' => GNUSOCIAL_VERSION, 'author' => 'Brion Vibber', 'homepage' => 'http://status.net/wiki/Plugin:PostDebug', 'rawdescription' => + // TRANS: Plugin description. _m('Debugging tool to record request details on POST.')); return true; } @@ -80,7 +81,7 @@ class PostDebugPlugin extends Plugin $file = $this->dir . DIRECTORY_SEPARATOR . $this->logFileName(); file_put_contents($file, $output); } else { - common_log(LOG_DEBUG, "PostDebug: $output"); + common_debug("PostDebug: $output"); } } @@ -145,6 +146,4 @@ class PostDebugPlugin extends Plugin } return $data; } - } -