]> git.mxchange.org Git - friendica.git/blobdiff - mod/viewsrc.php
Changed $a->get_baseurl() to App::get_baseurl()
[friendica.git] / mod / viewsrc.php
index 3fa4eaed53bad2b53686a59aef0af30acf1f5645..8510bd539573ac72ebbd07b1636b53ad06bb61ce 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 
 
-function viewsrc_content(&$a) {
+function viewsrc_content(App &$a) {
 
-       if(! local_user()) {
+       if (! local_user()) {
                notice( t('Access denied.') . EOL);
                return;
        }
@@ -24,7 +24,7 @@ function viewsrc_content(&$a) {
                dbesc($item_id)
        );
 
-       if(count($r))
+       if (dbm::is_result($r))
                if(is_ajax()) {
                        echo str_replace("\n",'<br />',$r[0]['body']);
                        killme();