Quellcode durchsuchen

Change news feed name

DSR! vor 3 Jahren
Ursprung
Commit
bdb7d8191e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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.";