]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SQLProfile/SQLProfilePlugin.php
Use common_debug() instead of common_log(LOG_DEBUG, ) to minimize code duplication.
[quix0rs-gnu-social.git] / plugins / SQLProfile / SQLProfilePlugin.php
index c17646f042d1b9a1f52abf60f113f216d49849f4..bacb1f2a95cf95c6f08ee6c6cd7f9d69bb5824e9 100644 (file)
@@ -31,13 +31,14 @@ class SQLProfilePlugin extends Plugin
 {
     private $recursionGuard = false;
 
-    function onPluginVersion(&$versions)
+    function onPluginVersion(array &$versions)
     {
         $versions[] = array('name' => 'SQLProfile',
-                            'version' => STATUSNET_VERSION,
+                            'version' => GNUSOCIAL_VERSION,
                             'author' => 'Brion Vibber',
                             'homepage' => 'http://status.net/wiki/Plugin:SQLProfile',
                             'rawdescription' =>
+                            // TRANS: Plugin description.
                             _m('Debug tool to watch for poorly indexed DB queries.'));
 
         return true;
@@ -57,7 +58,7 @@ class SQLProfilePlugin extends Plugin
                         (strpos($extra, 'Using temporary') !== false);
                 if ($evil) {
                     $xquery = $xobj->sanitizeQuery($query);
-                    common_log(LOG_DEBUG, "$extra | $xquery");
+                    common_debug("$extra | $xquery");
                 }
             }
         }