浏览代码

[VkBridge] remove useless $request member

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Pierre Mazière 7 年之前
父节点
当前提交
341ce2bf3e
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      bridges/VkBridge.php

+ 2 - 4
bridges/VkBridge.php

@@ -2,8 +2,6 @@
 
 class VkBridge extends BridgeAbstract {
 
-    private $request;
-
     public function loadMetadatas() {
         $this->maintainer = "ahiles3005";
         $this->name = "VK.com";
@@ -21,8 +19,8 @@ class VkBridge extends BridgeAbstract {
         $param=$this->parameters[$this->queriedContext];
         $html = '';
         if (isset($param['u']['value'])) {
-            $this->request = $param['u']['value'];
-            $text_html = $this->getSimpleHTMLDOM(urldecode($this->request)) or $this->returnServerError('No results for this query.');
+            $text_html = $this->getSimpleHTMLDOM(urldecode($param['u']['value']))
+                or $this->returnServerError('No results for this query.');
             $text_html = iconv('windows-1251', 'utf-8', $text_html);
             $html = str_get_html($text_html);
         }