Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Only set parentpage if a subpage was found

Fixes error if there's no header or footer
  • Loading branch information...
commit 5f5187e05cbbb66b05a40eff1c062337323da84c 1 parent 97dd1b3
Kristi authored May 22, 2012

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  lib/gollum/page.rb
5  lib/gollum/page.rb
@@ -435,8 +435,9 @@ def find_sub_page(name)
435 435
         dirs.pop
436 436
       end
437 437
 
438  
-      page = find_page_in_tree(map, name, '')
439  
-      page.parent_page = self
  438
+      if page = find_page_in_tree(map, name, '')
  439
+        page.parent_page = self
  440
+      end
440 441
       page
441 442
     end
442 443
 

0 notes on commit 5f5187e

Please sign in to comment.
Something went wrong with that request. Please try again.