]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
remove debugging calls
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 17 May 2009 16:37:04 +0000 (12:37 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 17 May 2009 16:37:04 +0000 (12:37 -0400)
plugins/WikiHashtagsPlugin.php

index 141cb07d2aa75bb813d5585d6b09be60c1e29824..6d186a5fed43766766f43be1c2b19bc0beb11d82 100644 (file)
@@ -54,32 +54,25 @@ class WikiHashtagsPlugin extends Plugin
 
     function onStartShowSections($action)
     {
-        common_debug('WikiHashtags: got called');
         $name = $action->trimmed('action');
 
         if ($name == 'tag') {
-            common_debug('WikiHashtags: called by tag');
 
             $taginput = $action->trimmed('tag');
             $tag = common_canonical_tag($taginput);
 
             if (!empty($tag)) {
-                common_debug('WikiHashtags: have a tag: ' . $tag);
 
                 $url = sprintf('http://hashtags.wikia.com/index.php?title=%s&action=render',
                                urlencode($tag));
                 $editurl = sprintf('http://hashtags.wikia.com/index.php?title=%s&action=edit',
                                    urlencode($tag));
 
-                common_debug('WikiHashtags: have an url: ' . $url);
-
                 $context = stream_context_create(array('http' => array('method' => "GET",
                                                                        'header' =>
                                                                        "User-Agent: " . $this->userAgent())));
                 $html = @file_get_contents($url, false, $context);
 
-                common_debug('WikiHashtags: results are: ' . $html);
-
                 $action->elementStart('div', array('id' => 'wikihashtags', 'class' => 'section'));
 
                 if (!empty($html)) {