Fixed the sandbox/unsandbox URLs. I'd like to make this a route... I'll look into it.
git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@814 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -196,13 +196,18 @@ class AppController extends Controller {
|
|||||||
$this->addSideMenuLink('Deposits',
|
$this->addSideMenuLink('Deposits',
|
||||||
array('controller' => 'transactions', 'action' => 'deposit'), null,
|
array('controller' => 'transactions', 'action' => 'deposit'), null,
|
||||||
'SITE');
|
'SITE');
|
||||||
|
|
||||||
if (sandbox())
|
if (sandbox())
|
||||||
$this->addSideMenuLink('Leave Sandbox',
|
$this->addSideMenuLink('Leave Sandbox',
|
||||||
preg_replace("%^/([^/]+)\.sand%", "/$1", $_SERVER['REQUEST_URI']), null,
|
('http://' . $_SERVER['SERVER_NAME'] .
|
||||||
|
preg_replace("%^/([^/]+)\.sand%", "/$1", $_SERVER['REQUEST_URI'])),
|
||||||
|
null,
|
||||||
'SITE');
|
'SITE');
|
||||||
else
|
else
|
||||||
$this->addSideMenuLink('Sandbox',
|
$this->addSideMenuLink('Sandbox',
|
||||||
preg_replace("%^/([^/]+)%", "/$1.sand", $_SERVER['REQUEST_URI']), null,
|
('http://' . $_SERVER['SERVER_NAME'] .
|
||||||
|
preg_replace("%^/([^/]+)%", "/$1.sand", $_SERVER['REQUEST_URI'])),
|
||||||
|
null,
|
||||||
'SITE');
|
'SITE');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,9 @@
|
|||||||
<head>
|
<head>
|
||||||
<?php echo $html->charset(); ?>
|
<?php echo $html->charset(); ?>
|
||||||
<title>
|
<title>
|
||||||
|
<?php if (sandbox()) echo "*SANDBOX* "; ?>
|
||||||
Property Manager: <?php echo $title_for_layout; ?>
|
Property Manager: <?php echo $title_for_layout; ?>
|
||||||
|
<?php if (sandbox()) echo " *SANDBOX*"; ?>
|
||||||
</title>
|
</title>
|
||||||
<?php
|
<?php
|
||||||
// Reset the __scripts variable, which has already been dumped to
|
// Reset the __scripts variable, which has already been dumped to
|
||||||
|
|||||||
Reference in New Issue
Block a user