conejoninja / antitroll-plugin

Anti troll plugin for Osclass
2 stars 1 forks source link

undefined function osc_die() #5

Closed trains58554 closed 11 years ago

trains58554 commented 11 years ago

For some reason php is telling me that osc_die is not defined.

Jay

trains58554 commented 11 years ago

I found out why this is not working. The reason this is not working is because the helper file hError is not being loaded in oc-load.php.

Jay

dev-101 commented 11 years ago

Hmm, I didn't get that error, but there are two if/if elseif calls for hErrors.php (not hError.php) in oc-load.php on lines 35 and 76.

conejoninja commented 11 years ago

I did not use osc_die in the plugin, I'm interested in what you're trying to do

trains58554 commented 11 years ago

osc_die is in the functions file at lines 24 and 29. That was how it was when I downloaded the plugin.

@dev101-osclass yep there are the two call but they hError is only loaded if there is an error.

Jay

conejoninja commented 11 years ago

I was wrong, will fix this very soon. Thanks a lot

trains58554 commented 11 years ago

Sounds Good. :)

conejoninja commented 11 years ago

fixed here : https://github.com/conejoninja/antitroll-plugin/commit/5877d8e2e95f5ba6f76815e6b6efc338d93b6bbf