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 / base [ view in CVS ]


Deprecated: Function gmstrftime() is deprecated in /home/mikespub/www/list.php on line 509
Date Directory [filter] File(s) [view] Author [filter]
13 Aug 2002 12:30:52postnuke_official/html/modules/basepninit.php,1.13,1.14John Robeson
 a hack to initialize base module .. set state to inactive, then active otherwise state insert will fail

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

Modified Files:
	pninit.php 
Log Message:
a hack to initialize base module .. set state to inactive, then active otherwise state insert will fail


Index: pninit.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/base/pninit.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** pninit.php	10 Aug 2002 02:48:53 -0000	1.13
--- pninit.php	13 Aug 2002 12:30:50 -0000	1.14
***************
*** 435,438 ****
--- 435,451 ----
      }
      
+     // set state of base module to 3 to get a default display(can't set directly to 3)
+     $res = pnModAPIFunc('modules', 'admin', 'setstate', array('regid' => pnModGetIDFromName('base'),
+                                                               'state' => _PNMODULE_STATE_INACTIVE));
+     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
+         return;
+     }
+     
+     $res = pnModAPIFunc('modules', 'admin', 'setstate', array('regid' => pnModGetIDFromName('base'),
+                                                               'state' => _PNMODULE_STATE_ACTIVE));
+     if (!isset($res) && pnExceptionMajor() != PN_NO_EXCEPTION) {
+         return;
+     }
+     
      // initialize blocks module
      $res = pnModAPIFunc('modules', 'admin', 'initialise', array('regid' => pnModGetIDFromName('blocks')));


Directory filter : [ all ] / postnuke_official / html / modules / base [ 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