Skip to content

Commit

Permalink
Updating the sidebar detection after renaming the page
Browse files Browse the repository at this point in the history
  • Loading branch information
goulvench committed Mar 8, 2012
1 parent dba63fb commit 23bea8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php get_header(); the_post(); ?>

<div class="row">
<?php $involvement_page = get_page_by_title('Participer') ?>
<?php $involvement_page = get_page_by_title('Comment venir') ?>
<?php if ($involvement_page && ($involvement_page->ID === get_the_ID() || in_array($involvement_page->ID, get_ancestors(get_the_ID(), 'page')))): ?>
<?php get_sidebar('attending') ?>
<?php else: ?>
Expand Down

0 comments on commit 23bea8d

Please sign in to comment.