friendica-github/mod/view.php
Hypolite Petovan dbc6eb5422 Remove unused code in mod/
- Remove commented code
- Remove unused/immediately overwritten variables
- Remove extraneous parameters
- Remove unreachable code
2019-01-21 10:53:32 -05:00

21 lines
347 B
PHP

<?php
use Friendica\App;
/**
* load view/theme/$current_theme/style.php with friendica context
*
* @param App $a
*/
function view_init(App $a)
{
header("Content-Type: text/css");
if ($a->argc == 4){
$theme = $a->argv[2];
if(file_exists("view/theme/$theme/style.php"))
require_once("view/theme/$theme/style.php");
}
exit();
}