friendica/mod/view.php

22 lines
347 B
PHP
Raw Normal View History

<?php
2019-01-07 17:26:46 +00:00
use Friendica\App;
/**
2019-01-07 17:24:01 +00:00
* load view/theme/$current_theme/style.php with friendica context
2019-01-07 06:07:42 +00:00
*
* @param App $a
*/
2019-01-07 17:26:46 +00:00
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");
}
2018-12-26 05:40:12 +00:00
exit();
}