MINOR Fixed paths due to file moving into sapphire/admin

This commit is contained in:
Ingo Schommer 2011-03-23 23:07:31 +13:00
parent 7ba2ea6a5e
commit 5f59b3a3c9
11 changed files with 51 additions and 57 deletions

View File

@ -2,7 +2,7 @@
/** /**
* A class representing back actions. * A class representing back actions.
* See cms/javascript/CMSMain.BatchActions.js on how to add custom javascript * See CMSMain.BatchActions.js on how to add custom javascript
* functionality. * functionality.
* *
* <code> * <code>

View File

@ -174,7 +174,7 @@ class LeftAndMain extends Controller {
$htmlEditorConfig = HtmlEditorConfig::get_active(); $htmlEditorConfig = HtmlEditorConfig::get_active();
$htmlEditorConfig->setOption('language', i18n::get_tinymce_lang()); $htmlEditorConfig->setOption('language', i18n::get_tinymce_lang());
if(!$htmlEditorConfig->getOption('content_css')) { if(!$htmlEditorConfig->getOption('content_css')) {
$cssFiles = 'cms/css/editor.css'; $cssFiles = 'sapphire/admin/css/editor.css';
// Use theme from the site config // Use theme from the site config
if(($config = SiteConfig::current_site_config()) && $config->Theme) { if(($config = SiteConfig::current_site_config()) && $config->Theme) {
@ -192,10 +192,10 @@ class LeftAndMain extends Controller {
} }
Requirements::css(CMS_DIR . '/css/typography.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/typography.css');
Requirements::css(CMS_DIR . '/css/layout.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/layout.css');
Requirements::css(CMS_DIR . '/css/cms_left.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/cms_left.css');
Requirements::css(CMS_DIR . '/css/cms_right.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/cms_right.css');
Requirements::css(SAPPHIRE_DIR . '/css/Form.css'); Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
if(isset($_REQUEST['debug_firebug'])) { if(isset($_REQUEST['debug_firebug'])) {
@ -214,13 +214,13 @@ class LeftAndMain extends Controller {
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-ui/jquery-ui.js'); //import all of jquery ui Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-ui/jquery-ui.js'); //import all of jquery ui
Requirements::javascript(CMS_DIR . '/thirdparty/jquery-layout/jquery.layout.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/thirdparty/jquery-layout/jquery.layout.js');
Requirements::javascript(CMS_DIR . '/thirdparty/jquery-layout/jquery.layout.state.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/thirdparty/jquery-layout/jquery.layout.state.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/json-js/json2.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/json-js/json2.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-metadata/jquery.metadata.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-metadata/jquery.metadata.js');
Requirements::javascript(CMS_DIR . '/javascript/jquery-fitheighttoparent/jquery.fitheighttoparent.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/jquery-fitheighttoparent/jquery.fitheighttoparent.js');
Requirements::javascript(CMS_DIR . '/javascript/ssui.core.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/ssui.core.js');
// @todo Load separately so the CSS files can be inlined // @todo Load separately so the CSS files can be inlined
Requirements::css(SAPPHIRE_DIR . '/thirdparty/jquery-ui-themes/smoothness/jquery.ui.all.css'); Requirements::css(SAPPHIRE_DIR . '/thirdparty/jquery-ui-themes/smoothness/jquery.ui.all.css');
@ -232,11 +232,11 @@ class LeftAndMain extends Controller {
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-cookie/jquery.cookie.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-cookie/jquery.cookie.js');
Requirements::javascript(CMS_DIR . '/thirdparty/jquery-notice/jquery.notice.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/thirdparty/jquery-notice/jquery.notice.js');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery-ondemand/jquery.ondemand.js'); Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery-ondemand/jquery.ondemand.js');
Requirements::javascript(CMS_DIR . '/javascript/jquery-changetracker/lib/jquery.changetracker.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/jquery-changetracker/lib/jquery.changetracker.js');
Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang'); Requirements::add_i18n_javascript(SAPPHIRE_DIR . '/javascript/lang');
Requirements::add_i18n_javascript(CMS_DIR . '/javascript/lang'); Requirements::add_i18n_javascript(SAPPHIRE_ADMIN_DIR . '/javascript/lang');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/scriptaculous/effects.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/scriptaculous/effects.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/scriptaculous/dragdrop.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/scriptaculous/dragdrop.js');
@ -247,15 +247,11 @@ class LeftAndMain extends Controller {
Requirements::javascript(THIRDPARTY_DIR . '/jstree/jquery.jstree.js'); Requirements::javascript(THIRDPARTY_DIR . '/jstree/jquery.jstree.js');
Requirements::css(THIRDPARTY_DIR . '/jstree/themes/apple/style.css'); Requirements::css(THIRDPARTY_DIR . '/jstree/themes/apple/style.css');
Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/LeftAndMain.js');
Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.Tree.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/LeftAndMain.Tree.js');
Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.EditForm.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/LeftAndMain.EditForm.js');
Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.AddForm.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/LeftAndMain.AddForm.js');
Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.BatchActions.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/LeftAndMain.BatchActions.js');
// navigator
Requirements::css(CMS_DIR . '/css/SilverStripeNavigator.css');
Requirements::javascript(CMS_DIR . '/javascript/SilverStripeNavigator.js');
Requirements::themedCSS('typography'); Requirements::themedCSS('typography');
@ -271,7 +267,7 @@ class LeftAndMain extends Controller {
Requirements::themedCSS($file[0], $file[1]); Requirements::themedCSS($file[0], $file[1]);
} }
Requirements::css(CMS_DIR . '/css/unjquery.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/unjquery.css');
// Javascript combined files // Javascript combined files
Requirements::combine_files( Requirements::combine_files(
@ -295,7 +291,7 @@ class LeftAndMain extends Controller {
'sapphire/thirdparty/scriptaculous/effects.js', 'sapphire/thirdparty/scriptaculous/effects.js',
'sapphire/thirdparty/scriptaculous/dragdrop.js', 'sapphire/thirdparty/scriptaculous/dragdrop.js',
'sapphire/thirdparty/scriptaculous/controls.js', 'sapphire/thirdparty/scriptaculous/controls.js',
'cms/javascript/LeftAndMain.js', 'sapphire/admin/javascript/LeftAndMain.js',
'sapphire/javascript/tree/tree.js', 'sapphire/javascript/tree/tree.js',
'sapphire/javascript/TreeDropdownField.js', 'sapphire/javascript/TreeDropdownField.js',
'cms/javascript/ThumbnailStripField.js', 'cms/javascript/ThumbnailStripField.js',
@ -971,7 +967,7 @@ class LeftAndMain extends Controller {
$form->setActions(null); $form->setActions(null);
Requirements::clear(); Requirements::clear();
Requirements::css(CMS_DIR . '/css/LeftAndMain_printable.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/LeftAndMain_printable.css');
return array( return array(
"PrintForm" => $form "PrintForm" => $form
); );
@ -1161,7 +1157,7 @@ class LeftAndMain extends Controller {
* *
* @var unknown_type * @var unknown_type
*/ */
static $application_logo = 'cms/images/mainmenu/logo.gif'; static $application_logo = 'sapphire/admin/images/mainmenu/logo.gif';
/** /**
* The application logo style. Customisable by calling * The application logo style. Customisable by calling
@ -1189,7 +1185,7 @@ class LeftAndMain extends Controller {
* If the given image's height is significantly larger or smaller, adjust the loading animation's top offset in * If the given image's height is significantly larger or smaller, adjust the loading animation's top offset in
* positionLoadingSpinner() in LeftAndMain.js * positionLoadingSpinner() in LeftAndMain.js
*/ */
protected static $loading_image = 'cms/images/logo.gif'; protected static $loading_image = 'sapphire/admin/images/logo.gif';
/** /**
* Set the image shown when the CMS is loading. * Set the image shown when the CMS is loading.

View File

@ -57,7 +57,7 @@ class MemberImportForm extends Form {
parent::__construct($controller, $name, $fields, $actions, $validator); parent::__construct($controller, $name, $fields, $actions, $validator);
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js');
Requirements::javascript(CMS_DIR . '/javascript/MemberImportForm.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberImportForm.js');
$this->addExtraClass('import-form'); $this->addExtraClass('import-form');
} }

View File

@ -121,8 +121,8 @@ class MemberTableField extends ComplexTableField {
$ret = parent::FieldHolder(); $ret = parent::FieldHolder();
Requirements::javascript(SAPPHIRE_DIR . "/thirdparty/scriptaculous/controls.js"); Requirements::javascript(SAPPHIRE_DIR . "/thirdparty/scriptaculous/controls.js");
Requirements::javascript(CMS_DIR . '/javascript/MemberTableField.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberTableField.js');
Requirements::javascript(CMS_DIR . "/javascript/MemberTableField_popup.js"); Requirements::javascript(SAPPHIRE_ADMIN_DIR . "/javascript/MemberTableField_popup.js");
return $ret; return $ret;
} }
@ -470,9 +470,9 @@ class MemberTableField_Popup extends ComplexTableField_Popup {
function forTemplate() { function forTemplate() {
$ret = parent::forTemplate(); $ret = parent::forTemplate();
Requirements::css(CMS_DIR . '/css/SecurityAdmin.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/SecurityAdmin.css');
Requirements::javascript(CMS_DIR . '/javascript/MemberTableField.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberTableField.js');
Requirements::javascript(CMS_DIR . '/javascript/MemberTableField_popup.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberTableField_popup.js');
return $ret; return $ret;
} }

View File

@ -147,15 +147,15 @@ abstract class ModelAdmin extends LeftAndMain {
//user_error('ModelAdmin::init(): Invalid Model class', E_USER_ERROR); //user_error('ModelAdmin::init(): Invalid Model class', E_USER_ERROR);
} }
Requirements::css(CMS_DIR . '/css/ModelAdmin.css'); // standard layout formatting for management UI Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/ModelAdmin.css'); // standard layout formatting for management UI
Requirements::css(CMS_DIR . '/css/silverstripe.tabs.css'); // follows the jQuery UI theme conventions Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/silverstripe.tabs.css'); // follows the jQuery UI theme conventions
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-livequery/jquery.livequery.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-livequery/jquery.livequery.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-ui/jquery-ui.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-ui/jquery-ui.js');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery/jquery_improvements.js'); Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery/jquery_improvements.js');
Requirements::javascript(CMS_DIR . '/javascript/ModelAdmin.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/ModelAdmin.js');
Requirements::javascript(CMS_DIR . '/javascript/ModelAdmin.History.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/ModelAdmin.History.js');
} }
/** /**

View File

@ -36,7 +36,6 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
public function init() { public function init() {
parent::init(); parent::init();
Requirements::javascript(CMS_DIR . '/javascript/hover.js');
Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/controls.js"); Requirements::javascript(THIRDPARTY_DIR . "/scriptaculous/controls.js");
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
@ -45,12 +44,12 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
Requirements::javascript(SAPPHIRE_DIR . "/javascript/TableListField.js"); Requirements::javascript(SAPPHIRE_DIR . "/javascript/TableListField.js");
Requirements::javascript(SAPPHIRE_DIR . "/javascript/TableField.js"); Requirements::javascript(SAPPHIRE_DIR . "/javascript/TableField.js");
Requirements::javascript(SAPPHIRE_DIR . "/javascript/ComplexTableField.js"); Requirements::javascript(SAPPHIRE_DIR . "/javascript/ComplexTableField.js");
Requirements::javascript(CMS_DIR . "/javascript/MemberTableField.js"); Requirements::javascript(SAPPHIRE_ADMIN_DIR . "/javascript/MemberTableField.js");
Requirements::css(THIRDPARTY_DIR . "/greybox/greybox.css"); Requirements::css(THIRDPARTY_DIR . "/greybox/greybox.css");
Requirements::css(SAPPHIRE_DIR . "/css/ComplexTableField.css"); Requirements::css(SAPPHIRE_DIR . "/css/ComplexTableField.css");
Requirements::javascript(CMS_DIR . '/javascript/SecurityAdmin_left.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/SecurityAdmin_left.js');
Requirements::javascript(CMS_DIR . '/javascript/SecurityAdmin_right.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/SecurityAdmin_right.js');
Requirements::javascript(THIRDPARTY_DIR . "/greybox/AmiJS.js"); Requirements::javascript(THIRDPARTY_DIR . "/greybox/AmiJS.js");
Requirements::javascript(THIRDPARTY_DIR . "/greybox/greybox.js"); Requirements::javascript(THIRDPARTY_DIR . "/greybox/greybox.js");
@ -193,13 +192,13 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
Requirements::clear(); Requirements::clear();
Requirements::css(SAPPHIRE_DIR . '/css/Form.css'); Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
Requirements::css(CMS_DIR . '/css/typography.css'); Requirements::css(CMS_DIR . '/css/typography.css');
Requirements::css(CMS_DIR . '/css/cms_right.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/cms_right.css');
Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js'); Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');
Requirements::css(CMS_DIR . '/css/MemberImportForm.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/MemberImportForm.css');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js');
Requirements::javascript(CMS_DIR . '/javascript/MemberImportForm.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberImportForm.js');
return $this->renderWith('BlankPage', array( return $this->renderWith('BlankPage', array(
'Form' => $this->MemberImportForm() 'Form' => $this->MemberImportForm()
@ -225,14 +224,14 @@ class SecurityAdmin extends LeftAndMain implements PermissionProvider {
public function groupimport() { public function groupimport() {
Requirements::clear(); Requirements::clear();
Requirements::css(SAPPHIRE_DIR . '/css/Form.css'); Requirements::css(SAPPHIRE_DIR . '/css/Form.css');
Requirements::css(CMS_DIR . '/css/typography.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/typography.css');
Requirements::css(CMS_DIR . '/css/cms_right.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/cms_right.css');
Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery/jquery.js');
Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js'); Requirements::javascript(THIRDPARTY_DIR . '/jquery-livequery/jquery.livequery.js');
Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js'); Requirements::javascript(SAPPHIRE_DIR . '/javascript/jquery_improvements.js');
Requirements::css(CMS_DIR . '/css/MemberImportForm.css'); Requirements::css(SAPPHIRE_ADMIN_DIR . '/css/MemberImportForm.css');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js'); Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-entwine/dist/jquery.entwine-dist.js');
Requirements::javascript(CMS_DIR . '/javascript/MemberImportForm.js'); Requirements::javascript(SAPPHIRE_ADMIN_DIR . '/javascript/MemberImportForm.js');
return $this->renderWith('BlankPage', array( return $this->renderWith('BlankPage', array(
'Form' => $this->GroupImportForm() 'Form' => $this->GroupImportForm()

View File

@ -585,6 +585,6 @@
} }
#UploadFormResponse.loading #UploadFormResponse.loading
.loading#UploadFormResponse { .loading#UploadFormResponse {
background: url(../../cms/images/network-save.gif) no-repeat left center; background: url(../images/network-save.gif) no-repeat left center;
padding-left: 20px; padding-left: 20px;
} }

View File

@ -531,11 +531,6 @@ li.spacer {
margin-right: 4px; margin-right: 4px;
} }
/* CMS specific icons for the tree */
ul.tree li.Root span.Root span.c a {
background: url(../../cms/images/treeicons/root.png) no-repeat !important;
}
/* Misc Styling */ /* Misc Styling */
iframe { iframe {
border: none; border: none;
@ -659,7 +654,7 @@ iframe {
display: block; display: block;
width: 20px; width: 20px;
height: 20px; height: 20px;
background: transparent url(../../cms/images/arrow_refresh.gif) no-repeat; background: transparent url(../../../cms/images/arrow_refresh.gif) no-repeat;
} }
#Form_EditorToolbarLinkForm select.hasRefreshButton { #Form_EditorToolbarLinkForm select.hasRefreshButton {

View File

@ -10,7 +10,7 @@
<body class="stillLoading $CSSClasses"> <body class="stillLoading $CSSClasses">
<div class="ss-loading-screen"> <div class="ss-loading-screen">
<div class="loading-logo" style="background-image: url($LoadingImage);"> <div class="loading-logo" style="background-image: url($LoadingImage);">
<img class="loading-animation" src="cms/images/spinner.gif" alt="<% _t('LOADING','Loading...',PR_HIGH) %>" /> <img class="loading-animation" src="sapphire/admin/images/spinner.gif" alt="<% _t('LOADING','Loading...',PR_HIGH) %>" />
<noscript><p class="nojs-warning"><span class="message notice"><% _t('REQUIREJS','The CMS requires that you have JavaScript enabled.',PR_HIGH) %></span></p></noscript> <noscript><p class="nojs-warning"><span class="message notice"><% _t('REQUIREJS','The CMS requires that you have JavaScript enabled.',PR_HIGH) %></span></p></noscript>
</div> </div>
</div> </div>

View File

@ -24,6 +24,8 @@
* - CMS_PATH: Absolute filepath, e.g. "/var/www/my-webroot/cms" * - CMS_PATH: Absolute filepath, e.g. "/var/www/my-webroot/cms"
* - SAPPHIRE_DIR: Path relative to webroot, e.g. "sapphire" * - SAPPHIRE_DIR: Path relative to webroot, e.g. "sapphire"
* - SAPPHIRE_PATH:Absolute filepath, e.g. "/var/www/my-webroot/sapphire" * - SAPPHIRE_PATH:Absolute filepath, e.g. "/var/www/my-webroot/sapphire"
* - SAPPHIRE_ADMIN_DIR:
* - SAPPHIRE_ADMIN_PATH:
* - THIRDPARTY_DIR: Path relative to webroot, e.g. "sapphire/thirdparty" * - THIRDPARTY_DIR: Path relative to webroot, e.g. "sapphire/thirdparty"
* - THIRDPARTY_PATH: Absolute filepath, e.g. "/var/www/my-webroot/sapphire/thirdparty" * - THIRDPARTY_PATH: Absolute filepath, e.g. "/var/www/my-webroot/sapphire/thirdparty"
* *
@ -165,6 +167,8 @@ define('THEMES_DIR', 'themes');
define('THEMES_PATH', BASE_PATH . '/' . THEMES_DIR); define('THEMES_PATH', BASE_PATH . '/' . THEMES_DIR);
define('SAPPHIRE_DIR', 'sapphire'); define('SAPPHIRE_DIR', 'sapphire');
define('SAPPHIRE_PATH', BASE_PATH . '/' . SAPPHIRE_DIR); define('SAPPHIRE_PATH', BASE_PATH . '/' . SAPPHIRE_DIR);
define('SAPPHIRE_ADMIN_DIR', 'sapphire/admin');
define('SAPPHIRE_ADMIN_PATH', BASE_PATH . '/' . SAPPHIRE_ADMIN_DIR);
define('CMS_DIR', 'cms'); define('CMS_DIR', 'cms');
define('CMS_PATH', BASE_PATH . '/' . CMS_DIR); define('CMS_PATH', BASE_PATH . '/' . CMS_DIR);
define('THIRDPARTY_DIR', SAPPHIRE_DIR . '/thirdparty'); define('THIRDPARTY_DIR', SAPPHIRE_DIR . '/thirdparty');

View File

@ -94,7 +94,7 @@ class DebugView extends Object {
echo '.failure span { color:#C80700; font-weight:bold; }'; echo '.failure span { color:#C80700; font-weight:bold; }';
echo '</style></head>'; echo '</style></head>';
echo '<body>'; echo '<body>';
echo '<div class="header"><img src="'. Director::absoluteBaseURL() .'cms/images/mainmenu/logo.gif" width="26" height="23" /></div>'; echo '<div class="header"><img src="'. Director::absoluteBaseURL() .'sapphire/admin/images/mainmenu/logo.gif" width="26" height="23" /></div>';
} }
/** /**