Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some encoding and title issues [[bugzilla:22020]], [[bugzilla:203…
…11]], [[bugzilla:21976]] * Create greater seperation between display, pagename and queryname article.title == pagename or search param (queryname) article.display_title == The human readable title (iPod instead of IPod) article.page_name == wgPageName * CGI escape should not be used for URIs. http://blog.tquadrado.com/?p=172 - Use URI::escape/unescape (in javascript encodeURI) - Use modified URI::escape/unescape (in javascript encodeURIComponent) * url_to_html() Should be used to print links to raw html (%a{ :href => } does this automatically !!!! ) * I retained some old stuff. This could possibly be removed at one time. - current_name (used by non-articles) - escaped_title and uri_escaped_title (used as params to download from wikipedia proper)
- Loading branch information
Showing
11 changed files
with
42 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#footmenu.nav | ||
.notice | ||
- if @article | ||
= stop_redirect_notice(@article.title) | ||
= stop_redirect_notice(@article.page_name) | ||
- else | ||
= stop_redirect_notice("") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
|
||
- if @article | ||
:javascript | ||
var title = "#{h @article.title.gsub("_", " ")}"; | ||
var title = "#{h @article.page_name}"; | ||
var server = "#{@article.server.base_url}"; | ||
function shouldCache() { | ||
return true; | ||
} | ||
- elsif current_name != "" | ||
:javascript | ||
var title = "#{@name}"; | ||
var server = "#{current_server.base_url}"; | ||
var server = "#{current_server.base_url}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters