1
intel352
errorhandler hack
  • 2004/5/14 13:24

  • intel352

  • Module Developer

  • Posts: 824

  • Since: 2003/11/23


just adds a new function so i can specify my own error messages:

function error_text($error$pages=1){
            global 
$xoopsConfig$xoopsUser$xoopsRequestUri$xoopsModule$xoopsLogger$HTTP_SERVER_VARS;

            echo 
"
".$xoopsConfig['sitename']." Error";
            echo 
"ERROR: $error";
            echo 
"[ .$pages.")'>Go Back ]
"
;
            exit();
        }


after initializing the errorhandler to $eh, you would call the function like so:

$eh->error_text("Please enter value for WHATEVER");


small feature, doesn't hurt XOOPS core at all, just adds to it

if this or something similar could be implemented in the future (if not already and i just don't know about it...), that'd be great

Login

Who's Online

379 user(s) are online (258 user(s) are browsing Support Forums)


Members: 0


Guests: 379


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits