blob: b6da128a31585c664fcec73e03f41fadcb2a166a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
namespace Bitweaver\Plugins;
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* smarty_modifier_append_url
*/
function smarty_modifier_append_url( $pUrl, $pKey, $pValue=NULL ) {
$ret = $pUrl;
if( isset( $pValue ) ) {
$ret .= (strpos( $pUrl, '?' ) ? '&' : '?').urlencode( $pKey ).'='.urlencode( $pValue );
}
return $ret;
}
|