diff --git a/2019/include/functions.php b/2019/include/functions.php
index fedead9..e0739e4 100644
--- a/2019/include/functions.php
+++ b/2019/include/functions.php
@@ -1,42 +1,40 @@
.
/**
* Require a certain page from the template directory
*
* @param $name string page name (to be sanitized)
* @param $args mixed arguments to be passed to the page scope
*/
function template( $template_name, $template_args = [] ) {
extract( $template_args, EXTR_SKIP );
return require CURRENT_CONFERENCE_ABSPATH . "/template/$template_name.php";
}
/**
* Return a Materialize icon tag
*
* @param string $icon Icon name
* @param string $c Additional class name
*/
function icon( $icon = 'send', $c = null ) {
if( $c !== null ) {
- $c = " $c";
- } else {
- $c = '';
+ $icon = "$icon $c";
}
- return "$icon";
+ return "";
}