From: Fabrixxm Date: Fri, 9 Nov 2012 07:43:22 +0000 (-0500) Subject: a little bit of phpdoc X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cafb4d62f4cc135c19e2428a44678a511e1eacbe;p=friendica.git a little bit of phpdoc --- diff --git a/boot.php b/boot.php index 4bdf25d410..661ebf779c 100644 --- a/boot.php +++ b/boot.php @@ -989,6 +989,13 @@ if(! function_exists('remote_user')) { // a page is loaded. Usually used for errors or alerts. if(! function_exists('notice')) { + /** + * Show an error message to user. + * + * This function save text in session, to be shown to the user at next page load + * + * @param string $s - Text of notice + */ function notice($s) { $a = get_app(); if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = array(); @@ -997,6 +1004,13 @@ if(! function_exists('notice')) { } } if(! function_exists('info')) { + /** + * Show an info message to user. + * + * This function save text in session, to be shown to the user at next page load + * + * @param string $s - Text of notice + */ function info($s) { $a = get_app(); if(! x($_SESSION,'sysmsg_info')) $_SESSION['sysmsg_info'] = array();