Changeset 0ece58d in github
- Timestamp:
- Jul 28, 2008 6:28:32 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 8c72e33
- Parents:
- 3ac95d5
- File:
-
- 1 edited
-
program/include/rcmail.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/include/rcmail.php
reec34ef r0ece58d 234 234 * This will instantiate a rcmail_template object and set 235 235 * environment vars according to the current session and configuration 236 * 237 * @param boolean True if this request is loaded in a (i)frame 238 * @return object rcube_template Reference to HTML output object 236 239 */ 237 240 public function load_gui($framed = false) 238 241 { 239 242 // init output page 240 $this->output = new rcube_template($this->task, $framed); 243 if (!($this->output instanceof rcube_template)) 244 $this->output = new rcube_template($this->task, $framed); 241 245 242 246 foreach (array('flag_for_deletion') as $js_config_var) { … … 263 267 /** 264 268 * Create an output object for JSON responses 269 * 270 * @return object rcube_json_output Reference to JSON output object 265 271 */ 266 272 public function init_json() 267 273 { 268 $this->output = new rcube_json_output($this->task); 274 if (!($this->output instanceof rcube_json_output)) 275 $this->output = new rcube_json_output($this->task); 269 276 270 277 return $this->output; … … 309 316 $conn = false; 310 317 311 if ($_SESSION['imap_host'] ) {318 if ($_SESSION['imap_host'] && !$this->imap->conn) { 312 319 if (!($conn = $this->imap->connect($_SESSION['imap_host'], $_SESSION['username'], $this->decrypt_passwd($_SESSION['password']), $_SESSION['imap_port'], $_SESSION['imap_ssl'], rcmail::get_instance()->config->get('imap_auth_type', 'check')))) { 313 320 if ($this->output) … … 318 325 } 319 326 320 return $conn; 327 return $conn; 321 328 } 322 329
Note: See TracChangeset
for help on using the changeset viewer.
