projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
22bef89
)
Make the edit action default to z17
author
Tom Hughes
<tom@compton.nu>
Fri, 6 May 2011 23:05:49 +0000
(
00:05
+0100)
committer
Tom Hughes
<tom@compton.nu>
Tue, 17 May 2011 23:35:59 +0000
(
00:35
+0100)
If an attempt is made to invoke an editor without specifying a zoom
level (as with the GPX edit links) then default to z17 instead of z14
to avoid trying to load too much data. Fixes #3728.
app/controllers/site_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/site_controller.rb
b/app/controllers/site_controller.rb
index 73f38f78c6b0ccf4eee941270940a701e3936eaa..65029e4efe86f3579bda6287ebb2225c26a68641 100644
(file)
--- a/
app/controllers/site_controller.rb
+++ b/
app/controllers/site_controller.rb
@@
-64,7
+64,7
@@
class SiteController < ApplicationController
#Currently this results in potlatch starting up at 0,0 (Atlantic ocean).
end
#Currently this results in potlatch starting up at 0,0 (Atlantic ocean).
end
- @zoom = '1
4
' if @zoom.nil?
+ @zoom = '1
7
' if @zoom.nil?
end
end
end
end
end
end