Changeset 370 for trunk/phpgwapi/inc/class.hooks.inc.php
- Timestamp:
- 07/28/08 16:42:45 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/inc/class.hooks.inc.php
r2 r370 41 41 $this->db = $db ? $db : $GLOBALS['phpgw']->db; // this is to allow setup to set the db 42 42 43 $this->db->query("SELECT hook_appname, hook_location, hook_filename FROM phpgw_hooks",__LINE__,__FILE__); 44 while( $this->db->next_record() ) 45 { 46 $this->found_hooks[$this->db->f('hook_appname')][$this->db->f('hook_location')] = $this->db->f('hook_filename'); 47 } 48 //echo '<pre>'; 49 //print_r($this->found_hooks); 50 //echo '</pre>'; 43 //jakjr: Go search in DB, only if the array is empty. 44 if (empty($this->found_hooks)) 45 { 46 $this->db->query("SELECT hook_appname, hook_location, hook_filename FROM phpgw_hooks",__LINE__,__FILE__); 47 while( $this->db->next_record() ) 48 { 49 $this->found_hooks[$this->db->f('hook_appname')][$this->db->f('hook_location')] = $this->db->f('hook_filename'); 50 } 51 //echo '<pre>'; 52 //print_r($this->found_hooks); 53 //echo '</pre>'; 54 } 51 55 } 52 56
Note: See TracChangeset
for help on using the changeset viewer.