X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FPostDebug%2FPostDebugPlugin.php;h=72492deacac968b14b304d394a3a39211bba2ccb;hb=7220b3ddd4a32b947e851c946cb6ad6146bebf7d;hp=48fe28eabd5248be128efa8e26436577c3e3ba4f;hpb=9f3246124dc9702ff3a7e422df4adff687e62f9c;p=quix0rs-gnu-social.git diff --git a/plugins/PostDebug/PostDebugPlugin.php b/plugins/PostDebug/PostDebugPlugin.php index 48fe28eabd..72492deaca 100644 --- a/plugins/PostDebug/PostDebugPlugin.php +++ b/plugins/PostDebug/PostDebugPlugin.php @@ -40,7 +40,7 @@ class PostDebugPlugin extends Plugin */ public $dir=false; - public function onArgsInitialize(&$args) + public function onArgsInitialize(array &$args) { if (isset($_SERVER['REQUEST_METHOD']) && $_SERVER['REQUEST_METHOD'] == 'POST') { @@ -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; } - } -