Browse Source

Change news feed name

DSR! 3 years ago
parent
commit
bdb7d8191e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/pineapple/modules/Dashboard/api/module.php

+ 2 - 2
src/pineapple/modules/Dashboard/api/module.php

@@ -89,12 +89,12 @@ class Dashboard extends SystemModule
 
     private function getBulletins()
     {
-        $bulletinData = @file_get_contents(self::REMOTE_URL . "/json/bulletin.json");
+        $bulletinData = @file_get_contents(self::REMOTE_URL . "/json/news.json");
         if ($bulletinData !== false) {
-            $this->response = json_decode($bulletinData);
             if (json_last_error() === JSON_ERROR_NONE) {
                 return;
             }
+            $this->response = json_decode($bulletinData);
         }
         
         $this->error = "Error connecting to " . self::REMOTE_NAME . ". Please check your connection.";