Permalink
Browse files

MINOR Fixed paths for SilverStripeNavigator resources (from sapphire/…

… to cms/)
  • Loading branch information...
1 parent c660284 commit f407c18796ed36efc867d91feb518c3ae2d0ee95 @chillu chillu committed Mar 22, 2011
Showing with 5 additions and 5 deletions.
  1. +3 −3 code/ContentController.php
  2. +2 −2 code/LeftAndMain.php
@@ -337,11 +337,11 @@ public function SilverStripeNavigator() {
if(Director::isDev() || Permission::check('CMS_ACCESS_CMSMain') || Permission::check('VIEW_DRAFT_CONTENT')) {
if($this->dataRecord) {
- Requirements::css(SAPPHIRE_DIR . '/css/SilverStripeNavigator.css');
+ Requirements::css(CMS_DIR . '/css/SilverStripeNavigator.css');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/behaviour/behaviour.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js');
Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery-livequery/jquery.livequery.js');
- Requirements::javascript(SAPPHIRE_DIR . '/javascript/SilverStripeNavigator.js');
+ Requirements::javascript(CMS_DIR . '/javascript/SilverStripeNavigator.js');
$return = $nav = SilverStripeNavigator::get_for_record($this->dataRecord);
$items = $return['items'];
@@ -376,7 +376,7 @@ public function SilverStripeNavigator() {
// On live sites we should still see the archived message
} else {
if($date = Versioned::current_archived_date()) {
- Requirements::css(SAPPHIRE_DIR . '/css/SilverStripeNavigator.css');
+ Requirements::css(CMS_DIR . '/css/SilverStripeNavigator.css');
$dateObj = Object::create('Datetime', $date, null);
// $dateObj->setVal($date);
return "<div id=\"SilverStripeNavigatorMessage\">". _t('ContentController.ARCHIVEDSITEFROM') ."<br>" . $dateObj->Nice() . "</div>";
View
@@ -252,8 +252,8 @@ function init() {
Requirements::javascript(CMS_DIR . '/javascript/LeftAndMain.BatchActions.js');
// navigator
- Requirements::css(SAPPHIRE_DIR . '/css/SilverStripeNavigator.css');
- Requirements::javascript(SAPPHIRE_DIR . '/javascript/SilverStripeNavigator.js');
+ Requirements::css(CMS_DIR . '/css/SilverStripeNavigator.css');
+ Requirements::javascript(CMS_DIR . '/javascript/SilverStripeNavigator.js');
Requirements::themedCSS('typography');

0 comments on commit f407c18

Please sign in to comment.