4 use Friendica\Util\Strings;
7 * load view/theme/$current_theme/style.php with friendica context
11 function view_init(App $a)
13 header("Content-Type: text/css");
17 $theme = Strings::sanitizeFilePathItem($theme);
19 // set the path for later use in the theme styles
20 $THEMEPATH = "view/theme/$theme";
21 if (file_exists("view/theme/$theme/style.php")) {
22 require_once("view/theme/$theme/style.php");