diff options
author | Andrew Dolgov <[email protected]> | 2011-07-30 23:36:35 -0700 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-07-30 23:36:35 -0700 |
commit | e78477b4e213e31cd19f483039f3af182e9f1cef (patch) | |
tree | 4f3d6403b92b4d6d9b2df4de0a12e410fb3356fa /backend.php | |
parent | 7d7f44ec01cbd4db9eaa8cbfb64326395e0b2332 (diff) | |
parent | 9949bd154e9d01b50132e387059ef987c6887c8b (diff) |
Merge pull request #9 from meyercr/9949bd154e9d01b50132e387059ef987c6887c8b
Here are my patches which fix 2 bugs, and remove some dead code, and deprecated usage.
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend.php b/backend.php index 113c2832e..299038434 100644 --- a/backend.php +++ b/backend.php @@ -205,7 +205,7 @@ case "view": $id = db_escape_string($_REQUEST["id"]); - $cids = split(",", db_escape_string($_REQUEST["cids"])); + $cids = explode(",", db_escape_string($_REQUEST["cids"])); $mode = db_escape_string($_REQUEST["mode"]); $omode = db_escape_string($_REQUEST["omode"]); @@ -217,7 +217,7 @@ if ($mode == "") { array_push($articles, format_article($link, $id, false)); } else if ($mode == "zoom") { - array_push($articles, format_article($link, $id, false, true, true)); + array_push($articles, format_article($link, $id, true, true)); } else if ($mode == "raw") { if ($_REQUEST['html']) { header("Content-Type: text/html"); @@ -384,7 +384,7 @@ $articles = array(); foreach ($topmost_article_ids as $id) { - array_push($articles, format_article($link, $id, $feed, false)); + array_push($articles, format_article($link, $id, false)); } $reply['articles'] = $articles; |