Xaraya / Postnuke CVS Notices - Message

Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites

View Statistics - Next Notice - Previous Notice

Directory filter : [ all ] / postnuke_official / html / modules / modules [ view in CVS ]

Date Directory [filter] File(s) [view] Author [filter]
10 Aug 2002 11:16:30postnuke_official/html/modules/modulespnadmin.php,1.23,1.24Mike
 show user exceptions at initialisation

Update of /home/cvsroot/postnuke_official/html/modules/modules
In directory ns7.hostnuke.net:/tmp/cvs-serv31111

Modified Files:
	pnadmin.php 
Log Message:
show user exceptions at initialisation


Index: pnadmin.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/modules/pnadmin.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** pnadmin.php	27 Jul 2002 18:30:24 -0000	1.23
--- pnadmin.php	10 Aug 2002 11:16:27 -0000	1.24
***************
*** 29,33 ****
  function modules_admin_main()
  {
!     return modules_admin_menu();
  }
  
--- 29,33 ----
  function modules_admin_main()
  {
!     return modules_admin_list();
  }
  
***************
*** 324,331 ****
  
      // Initialise module
!     if(pnModAPIFunc('modules',
!                     'admin',
!                     'initialise',
!                     array('regid' => $id))) {
          // Success
          pnSessionSetVar('statusmsg', 'Module initialised');
--- 324,347 ----
  
      // Initialise module
!     if(!pnModAPIFunc('modules',
!                      'admin',
!                      'initialise',
!                      array('regid' => $id))) {
!         // Throw back any system exceptions (e.g. database failure)
!         if (pnExceptionMajor() == PN_SYSTEM_EXCEPTION) {
!              return; // throw back
!         } elseif (pnExceptionMajor() == PN_USER_EXCEPTION) {
!             // get back the reason in string format
!             $reason = pnExceptionValueString();
!             if (!empty($reason)) {
!                 $reason = ' - ' . pnML('Reason') . ' : ' . $reason;
!             }
!             pnSessionSetVar('errormsg', pnML('Module initialisation failed') .
!                             $reason);
!             pnExceptionFree();
!         } else {
!             pnSessionSetVar('errormsg', pnML('Module initialisation failed'));
!         }
!     } else {
          // Success
          pnSessionSetVar('statusmsg', 'Module initialised');


Directory filter : [ all ] / postnuke_official / html / modules / modules [ view in CVS ]

View Statistics - Next Notice - Previous Notice


Visit Developer Site - Browse CVS Repository Syndicate via backend.rss
(max. once per hour please)
Powered by CVSNotice 0.1.3