| | |
| | | |
| | | |
| | | /** |
| | | * Set environment variables for specified config options |
| | | */ |
| | | public function set_env_config($options) |
| | | { |
| | | foreach ((array) $options as $option) { |
| | | if ($this->config->get($option)) { |
| | | $this->output->set_env($option, true); |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Returns RFC2822 formatted current date in user's timezone |
| | | * |
| | | * @return string Date |
| | |
| | | } |
| | | |
| | | $this->output->set_env('max_filesize', $max_filesize); |
| | | $max_filesize = self::show_bytes($max_filesize); |
| | | $max_filesize = $this->show_bytes($max_filesize); |
| | | $this->output->set_env('filesizeerror', $this->gettext(array( |
| | | 'name' => 'filesizeerror', 'vars' => array('size' => $max_filesize)))); |
| | | |