Skip to content

Commit

Permalink
# Changed some exit() calls to return calls in some top-level
Browse files Browse the repository at this point in the history
# scripts to make running Phorum in an embedded fashion possible.
# The exit() calls made it impossible to return to the master
# application after Phorum was done processing.
  • Loading branch information
mmakaay committed Feb 4, 2006
1 parent 6b34d87 commit 7e21556
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions pm.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
include phorum_get_template("stdblock");
phorum_hook("before_footer");
include phorum_get_template("footer");
exit;
return;
}

// ------------------------------------------------------------------------
Expand Down Expand Up @@ -137,7 +137,7 @@ function phorum_getparam($name)
include phorum_get_template("message");
phorum_hook("before_footer");
include phorum_get_template("footer");
exit;
return;
}
}

Expand Down Expand Up @@ -528,7 +528,7 @@ function phorum_pm_folder_exists($foldername)
$redir_url = call_user_func_array('phorum_get_url', $args);

phorum_redirect_by_url($redir_url);
exit;
exit();
}

}
Expand Down
2 changes: 1 addition & 1 deletion profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
include phorum_get_template("message");
phorum_hook("before_footer");
include phorum_get_template("footer");
exit();
return;
}

// security messures
Expand Down
5 changes: 2 additions & 3 deletions register.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
include phorum_get_template("message");
phorum_hook("before_footer");
include phorum_get_template("footer");
exit();
return;

}

Expand Down Expand Up @@ -210,8 +210,7 @@
include phorum_get_template("message");
phorum_hook("before_footer");
include phorum_get_template("footer");

exit();
return;

// Adding the user to the database failed.
} else {
Expand Down
2 changes: 0 additions & 2 deletions rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@

);


$data = create_rss_feed($channel, $items);

}
Expand All @@ -125,7 +124,6 @@

phorum_cache_put("rss", $cache_key, $data, 300);


/*******************************************************/

function create_rss_feed($channel, $items)
Expand Down

0 comments on commit 7e21556

Please sign in to comment.