QRCode plugin: use url instead of real_url
Fixes #414 and avoid usage of redirector in QRCode. Also fixed a bug with URL encoding.
This commit is contained in:
parent
79851b4890
commit
49e62f22ad
3 changed files with 10 additions and 4 deletions
tests/plugins
|
@ -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']));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue