mirror of
https://github.com/Rudloff/alltube.git
synced 2024-06-24 07:26:41 +02:00
WIP noscheme modifier
This commit is contained in:
parent
92035533b8
commit
651ab412a7
|
@ -22,7 +22,8 @@ $app = new \Slim\Slim(
|
|||
);
|
||||
$view = $app->view();
|
||||
$view->parserExtensions = array(
|
||||
__DIR__.'/vendor/slim/views/SmartyPlugins'
|
||||
__DIR__.'/vendor/slim/views/SmartyPlugins',
|
||||
__DIR__.'/smarty'
|
||||
);
|
||||
$app->get(
|
||||
'/',
|
||||
|
|
5
smarty/modifier.noscheme.php
Normal file
5
smarty/modifier.noscheme.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
function smarty_modifier_noscheme($url) {
|
||||
$info = parse_url($url);
|
||||
return '//'.$info['host'].$info['path'];
|
||||
}
|
Loading…
Reference in New Issue
Block a user