]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewsrc.php
Normalize App parameter declaration (mod folder, 3 out of 3)
[friendica.git] / mod / viewsrc.php
index 94ed9b5dc247f602feaa6ad21a0df9af43bc73a6..a3f0affb531971cfc1eb63e06fd02d073ce34b74 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 
-function viewsrc_content(&$a) {
+function viewsrc_content(App $a) {
 
        if (! local_user()) {
                notice( t('Access denied.') . EOL);
@@ -16,7 +16,7 @@ function viewsrc_content(&$a) {
                return;
        }
 
-       $r = q("SELECT `item`.`body` FROM `item` 
+       $r = q("SELECT `item`.`body` FROM `item`
                WHERE `item`.`uid` = %d AND `item`.`visible` = 1 AND `item`.`deleted` = 0
                and `item`.`moderated` = 0
                AND `item`.`id` = '%s' LIMIT 1",