浏览代码

Change news feed name

DSR! 3 年之前
父节点
当前提交
bdb7d8191e
共有 1 个文件被更改,包括 2 次插入2 次删除
  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.";