Changeset 479
- Timestamp:
- 02/10/08 23:04:54 (11 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
module.inc (modified) (5 diffs)
-
owa_caller.php (modified) (2 diffs)
-
owa_install.php (modified) (1 diff)
-
owa_module.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/module.inc
r474 r479 26 26 * All configuration taken from Gallery directly. 27 27 */ 28 function owa_factory( ) {28 function owa_factory($params = array()) { 29 29 30 30 static $owa; … … 38 38 39 39 // init the configuration array for this caller 40 $owa_config = array();40 $owa_config = $params; 41 41 42 42 // OWA DATABASE CONFIGURATION … … 47 47 // Get Gallery's DB configuration 48 48 $db_config = $gallery->getConfig('storage.config'); 49 50 // set OWA's database configuration values 51 $owa_config['db_type'] = $db_config['type']; 49 $gallery->debug($db_config['type']); 50 // set OWA's database configuration values 51 if ($db_config['type'] === 'mysqli'): 52 $owa_config['db_type'] = 'mysql'; 53 else: 54 $owa_config['db_type'] = $db_config['type']; 55 endif; 56 $gallery->debug($owa_config['db_type']); 52 57 $owa_config['db_name'] = $db_config['database']; 53 58 $owa_config['db_host'] = $db_config['hostname']; … … 77 82 $owa_config['is_embedded'] = 'true'; 78 83 84 $gallery->debug('hello from owa'); 85 79 86 // create owa instance 80 87 $owa = new owa_php($owa_config); 88 $gallery->debug('hello from owa after'); 81 89 82 90 return $owa; … … 279 287 280 288 global $gallery; 281 282 $owa = owa_factory(); 283 284 // set user priviledges of the request for OWA to log 289 290 $owa_config = array(); 291 $owa_config['do_not_fetch_config_from_db'] = true; 292 $owa = owa_factory($owa_config); 293 // set user priviledges of the request for OWA to log 285 294 owa_set_priviledges(); 286 295 -
trunk/owa_caller.php
r469 r479 111 111 $this->e->debug('Caller configuration overrides applied.'); 112 112 113 114 113 /* APPLY CONFIGURATION FILE OVERRIDES */ 115 114 … … 219 218 // needed for backwards compatability 220 219 $this->config = $this->c->fetch('base'); 221 220 222 221 return; 223 222 -
trunk/owa_install.php
r361 r479 82 82 83 83 $table_check = array(); 84 84 //$this->e->notice(print_r($this->tables, true)); 85 85 // test for existance of tables 86 86 foreach ($this->tables as $table) { -
trunk/owa_module.php
r367 r479 271 271 272 272 $obj = $this->installerFactory(); 273 //$this->e->notice(print_r($obj, true)); 274 273 275 $this->e->notice('starting install'); 274 276 $tables_to_install = $obj->checkForSchema();
