]> git.mxchange.org Git - friendica.git/blobdiff - mod/notes.php
add dop event & fix event edit
[friendica.git] / mod / notes.php
index 74ab18a6f95f0aeeb16418b584709163a471c981..c7cfe8d70f1a2d3e13f98249785b6fcf9073a7b1 100644 (file)
@@ -1,9 +1,10 @@
 <?php
 
-function notes_init(&$a) {
+function notes_init(App $a) {
 
-       if(! local_user())
+       if (! local_user()) {
                return;
+       }
 
        $profile = 0;
 
@@ -16,9 +17,9 @@ function notes_init(&$a) {
 }
 
 
-function notes_content(&$a,$update = false) {
+function notes_content(App $a, $update = false) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Permission denied.') . EOL);
                return;
        }