aboutsummaryrefslogtreecommitdiffstats
path: root/mod/profiles.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-05-23 11:39:57 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-05-23 11:39:57 +0200
commite1107b55c6715d131ca808890ce51c6301e56ccc (patch)
treefe082a84a1b20b68141e3b1ffdac697051ae73b6 /mod/profiles.php
parent3ea145fae7defaf959b04797afc8482bd0190352 (diff)
downloadvolse-hubzilla-e1107b55c6715d131ca808890ce51c6301e56ccc.tar.gz
volse-hubzilla-e1107b55c6715d131ca808890ce51c6301e56ccc.tar.bz2
volse-hubzilla-e1107b55c6715d131ca808890ce51c6301e56ccc.zip
add info() function. Works like notice() but show messages in a div with class info-message.
update code to use info() instead of notice() when appropriate (non-error message) add info-message class style in themes
Diffstat (limited to 'mod/profiles.php')
-rw-r--r--mod/profiles.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/mod/profiles.php b/mod/profiles.php
index 984420aa2..9c92d81ba 100644
--- a/mod/profiles.php
+++ b/mod/profiles.php
@@ -196,7 +196,7 @@ function profiles_post(&$a) {
);
if($r)
- notice( t('Profile updated.') . EOL);
+ info( t('Profile updated.') . EOL);
if($namechanged && $is_default) {
@@ -251,7 +251,7 @@ function profiles_content(&$a) {
intval(local_user())
);
if($r)
- notice( t('Profile deleted.') . EOL);
+ info( t('Profile deleted.') . EOL);
goaway($a->get_baseurl() . '/profiles');
return; // NOTREACHED
@@ -286,7 +286,7 @@ function profiles_content(&$a) {
dbesc($name)
);
- notice( t('New profile created.') . EOL);
+ info( t('New profile created.') . EOL);
if(count($r3) == 1)
goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']);
goaway($a->get_baseurl() . '/profiles');
@@ -325,7 +325,7 @@ function profiles_content(&$a) {
intval(local_user()),
dbesc($name)
);
- notice( t('New profile created.') . EOL);
+ info( t('New profile created.') . EOL);
if(count($r3) == 1)
goaway($a->get_baseurl() . '/profiles/' . $r3[0]['id']);
goaway($a->get_baseurl() . '/profiles');
@@ -475,4 +475,4 @@ function profiles_content(&$a) {
return $o;
}
-} \ No newline at end of file
+}