Commit dd8bbae5 authored by Zachary Doll's avatar Zachary Doll

Throw a 404 exception instead of just returning

parent 4014be49
......@@ -142,7 +142,7 @@ class YagaHooks implements Gdn_IPlugin {
*/
public function ProfileController_Reactions_Create($Sender, $UserReference = '', $Username = '', $ActionID = '', $Page = 0) {
if(!C('Yaga.Reactions.Enabled')) {
return;
throw notFoundException();
}
list($Offset, $Limit) = OffsetLimit($Page, C('Yaga.ReactedContent.PerPage', 5));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment