diff options
author | olivierm <olivier@migeot.org> | 2011-02-24 18:52:08 +0100 |
---|---|---|
committer | olivierm <olivier@migeot.org> | 2011-02-24 18:52:08 +0100 |
commit | d2c47924eb186a0839fe107b271ccbf27d15fe10 (patch) | |
tree | ad94b3b6ed5232fc388ddb3212d1f0dccb3eb893 /boot.php | |
parent | 42d1474ff1388f987961ba24b0218a8e6ff0f47c (diff) | |
parent | 8ed085c64e4fb097394d0cc93f8744606c15527b (diff) | |
download | volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.tar.gz volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.tar.bz2 volse-hubzilla-d2c47924eb186a0839fe107b271ccbf27d15fe10.zip |
Merge commit 'mike/master'
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -768,7 +768,12 @@ function escape_tags($string) { if(! function_exists('login')) { function login($register = false) { $o = ""; - $register_html = (($register) ? load_view_file("view/register-link.tpl") : ""); + $register_tpl = (($register) ? load_view_file("view/register-link.tpl") : ""); + + $register_html = replace_macros($register_tpl,array( + '$title' => t('Create a New Account'), + '$desc' => t('Register') + )); $noid = get_config('system','no_openid'); if($noid) { @@ -795,6 +800,7 @@ function login($register = false) { } $o = replace_macros($tpl,array( + '$logout' => t('Logout'), '$register_html' => $register_html, '$classname' => $classname, '$namelabel' => $namelabel, @@ -2434,6 +2440,9 @@ if(! function_exists('proc_run')) { function proc_run($cmd){ $args = func_get_args(); call_hooks("proc_run", $args); + + if(count($args) && $args[0] === 'php') + $args[0] = ((x($a->config,'php_path')) && (strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php'); foreach ($args as $arg){ $arg = escapeshellarg($arg); |