web attribute accessed directly, not through accessor. Reason: not to scratch head about "who is web?"

This commit is contained in:
Alexey Verkhovsky 2005-01-30 05:22:19 +00:00
parent d80d60243b
commit c99d675780

View file

@ -40,7 +40,7 @@ class Page
# the page to re-render itself once again, hopefully _after_ it is inserted in the web # the page to re-render itself once again, hopefully _after_ it is inserted in the web
self.revisions.last.clear_display_cache self.revisions.last.clear_display_cache
web.refresh_pages_with_references(@name) if @revisions.length == 1 @web.refresh_pages_with_references(@name) if @revisions.length == 1
end end
def rollback(revision_number, created_at, author_ip = nil) def rollback(revision_number, created_at, author_ip = nil)
@ -69,20 +69,20 @@ class Page
end end
def references def references
web.select.pages_that_reference(name) @web.select.pages_that_reference(name)
end end
# Returns the original wiki-word name as separate words, so "MyPage" becomes "My Page". # Returns the original wiki-word name as separate words, so "MyPage" becomes "My Page".
def plain_name def plain_name
web.brackets_only ? name : WikiWords.separate(name) @web.brackets_only ? name : WikiWords.separate(name)
end end
def link(options = {}) def link(options = {})
web.make_link(name, nil, options) @web.make_link(name, nil, options)
end end
def author_link(options = {}) def author_link(options = {})
web.make_link(author, nil, options) @web.make_link(author, nil, options)
end end