Thomas Bruederli
2012-07-06 af32a2f5ece250427aa753b236e48784ffa07aba
program/include/rcube_template.php
@@ -77,7 +77,9 @@
        $this->set_env('x_frame_options', $this->app->config->get('x_frame_options', 'sameorigin'));
        // load the correct skin (in case user-defined)
        $this->set_skin($this->config['skin']);
        $skin = $this->app->config->get('skin', 'default');
        $this->set_skin($skin);
        $this->set_env('skin', $skin);
        // add common javascripts
        $this->add_script('var '.JS_OBJECT_NAME.' = new rcube_webmail();', 'head_top');
@@ -779,6 +781,13 @@
                        if (preg_match('/Revision:\s(\d+)/', @shell_exec('svn info'), $regs))
                          $ver .= ' [SVN r'.$regs[1].']';
                    }
                    else if (is_file(INSTALL_PATH . '.git/index')) {
                        if (preg_match('/Date:\s+([^\n]+)/', @shell_exec('git log -1'), $regs)) {
                            if ($date = date('Ymd.Hi', strtotime($regs[1]))) {
                                $ver .= ' [GIT '.$date.']';
                            }
                        }
                    }
                    $content = Q($ver);
                }
                else if ($object == 'steptitle') {