QRCode plugin: use url instead of real_url

Fixes  and avoid usage of redirector in QRCode.

Also fixed a bug with URL encoding.
This commit is contained in:
ArthurHoaro 2015-12-22 10:24:31 +01:00
parent 79851b4890
commit 49e62f22ad
3 changed files with 10 additions and 4 deletions
tests/plugins

View file

@ -30,7 +30,7 @@ class PlugQrcodeTest extends PHPUnit_Framework_TestCase
'title' => $str,
'links' => array(
array(
'real_url' => $str,
'url' => $str,
)
)
);
@ -39,7 +39,7 @@ class PlugQrcodeTest extends PHPUnit_Framework_TestCase
$link = $data['links'][0];
// data shouldn't be altered
$this->assertEquals($str, $data['title']);
$this->assertEquals($str, $link['real_url']);
$this->assertEquals($str, $link['url']);
// plugin data
$this->assertEquals(1, count($link['link_plugin']));