diff options
| author | lsces <lester@lsces.co.uk> | 2026-03-26 17:38:36 +0000 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-03-26 17:38:36 +0000 |
| commit | 0bb2516c7143125e58e21295fd47b2064d31bb64 (patch) | |
| tree | 87c91837fb135abcde08598d46c679c7801bac1d /redirect.php | |
| parent | ca5bc9374b72dc41758b34a88591af3881269b97 (diff) | |
| download | liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.tar.gz liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.tar.bz2 liberty-0bb2516c7143125e58e21295fd47b2064d31bb64.zip | |
Namespace changes
Diffstat (limited to 'redirect.php')
| -rwxr-xr-x | redirect.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/redirect.php b/redirect.php index f997490..0c61e75 100755 --- a/redirect.php +++ b/redirect.php @@ -1,4 +1,5 @@ <?php + /** * @version $Header$ * lookup_content_inc @@ -11,11 +12,13 @@ /** * Required setup */ +use Bitweaver\KernelTools; + require_once '../kernel/includes/setup_inc.php'; + if( !empty( $_REQUEST['q'] )) { - bit_redirect( $_REQUEST['q'] ); + KernelTools::bit_redirect( $_REQUEST['q'] ); } else { - $_REQUEST['error'] = tra( 'The redirect did not include a url.' ); + $_REQUEST['error'] = KernelTools::tra( 'The redirect did not include a url.' ); include( KERNEL_PKG_PATH . 'error.php' ); -} -?> +}
\ No newline at end of file |
