Changeset 1818 for plugins/apostrophePlugin/branches/features/css/lib/navigation/aNavigation.class.php
- Timestamp:
- 07/21/10 16:35:10 (22 months ago)
- Location:
- plugins/apostrophePlugin/branches/features/css
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
lib/navigation/aNavigation.class.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/branches/features/css
- Property svn:mergeinfo changed
-
plugins/apostrophePlugin/branches/features/css/lib/navigation/aNavigation.class.php
r1681 r1818 3 3 abstract class aNavigation 4 4 { 5 5 6 6 public static $tree = null; 7 7 public static $hash = null; 8 8 9 9 // Functional testing reuses the same PHP session, we must 10 10 // accurately simulate a new one. This method is called by … … 15 15 if (sfConfig::get('app_a_many_pages', false)) 16 16 { 17 17 18 18 } 19 19 } 20 20 21 21 protected abstract function buildNavigation(); 22 22 23 23 public function __construct(aPage $root, aPage $active, $options = array()) 24 24 { 25 25 $this->user = sfContext::getInstance()->getUser(); 26 26 $this->livingOnly = !(aTools::isPotentialEditor() && sfContext::getInstance()->getUser()->getAttribute('show-archived', true, 'apostrophe')); 27 27 28 28 $this->root = $root; 29 29 $this->active = $active; … … 51 51 } 52 52 } 53 54 if($node['archived'] == true)55 {56 if($this->livingOnly)57 unset($tree[$pos]);58 }59 53 } 60 54 } 61 55 62 56 }

