]> git.mxchange.org Git - friendica-addons.git/commitdiff
statistics: In accordance with Jason from michael.bueker@hamburg-mitte.bezirkspiraten...
authorMichael Vogel <icarus@dabo.de>
Sun, 2 Feb 2014 20:27:16 +0000 (21:27 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 2 Feb 2014 20:27:16 +0000 (21:27 +0100)
statistics_json/statistics_json.php

index 5bc4902e13e43450f67459fae7264fc238580a17..65d3985dc01cef783bd2783bc09ce5db9184244c 100644 (file)
@@ -23,6 +23,7 @@ function statistics_json_init() {
 
        $statistics = array(
                        "name" => $a->config["sitename"],
+                       "network" => FRIENDICA_PLATFORM,
                        "version" => FRIENDICA_VERSION,
                        "registrations_open" => ($a->config['register_policy'] != 0),
                        "total_users" => get_config('statistics_json','total_users'),
@@ -90,7 +91,7 @@ function statistics_json_cron($a,$b) {
                        set_config('statistics_json','active_users_monthly', $active_users_monthly);
        }
 
-       $posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall` AND id=parent");
+       $posts = q("SELECT COUNT(*) AS local_posts FROM `item` WHERE `wall`");
 
        if (!is_array($posts))
                $local_posts = -1;