diff options
author | filip <filip.komar@gmail.com> | 2015-05-02 17:14:00 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2015-05-02 17:14:00 +0200 |
commit | 62ae825edfd34c1dedc76cb9e556c80391f317c5 (patch) | |
tree | 64027f1d1305b1dca0688e3ee77354949484a784 /en | |
parent | 6c1ef956b76448a3ac165591cd30cc889fb4b3bc (diff) | |
download | www-62ae825edfd34c1dedc76cb9e556c80391f317c5.tar www-62ae825edfd34c1dedc76cb9e556c80391f317c5.tar.gz www-62ae825edfd34c1dedc76cb9e556c80391f317c5.tar.bz2 www-62ae825edfd34c1dedc76cb9e556c80391f317c5.tar.xz www-62ae825edfd34c1dedc76cb9e556c80391f317c5.zip |
bugfix for proper parsing of pt_br and other underline language abreviations
Diffstat (limited to 'en')
-rw-r--r-- | en/doc/index.php | 8 | ||||
-rw-r--r-- | en/downloads/get/index.php | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/en/doc/index.php b/en/doc/index.php index 157f834c1..727e3ba49 100644 --- a/en/doc/index.php +++ b/en/doc/index.php @@ -34,15 +34,15 @@ require 'doc.php'; <div style="float: left; margin: 1em; width: 24em;"> <p style="margin-left: 2em;"><?php doc_list(_r('Installer'), 'installer', 4, '<a href="//doc.mageia.org/installer/4/%s/content/index.html">HTML</a>', - '<a rel="nofollow" href="../downloads/get/?q=Mageia4_DrakX_%s_epub&doc=yes" title="Mageia installer EPUB">EPUB</a>', - '<a rel="nofollow" href="../downloads/get/?q=Mageia4_DrakX_%s_pdf&doc=yes" title="Mageia installer PDF">PDF</a>'); + '<a rel="nofollow" href="../downloads/get/?q=Mageia4-DrakX-%s-epub&doc=yes" title="Mageia installer EPUB">EPUB</a>', + '<a rel="nofollow" href="../downloads/get/?q=Mageia4-DrakX-%s-pdf&doc=yes" title="Mageia installer PDF">PDF</a>'); ?></p> </div> <div style="float: right; margin: 1em; width: 24em;"> <p style="margin-left: 2em;"><?php doc_list(_r('Control Center'), 'control_center', 4, '<a href="//doc.mageia.org/mcc/4/%s/content/index.html">HTML</a>', - '<a rel="nofollow" href="../downloads/get/?q=Mageia4_MCC_%s_epub&doc=yes" title="Mageia MCC EPUB">EPUB</a>', - '<a rel="nofollow" href="../downloads/get/?q=Mageia4_MCC_%s_pdf&doc=yes" title="Mageia MCC PDF">PDF</a>'); + '<a rel="nofollow" href="../downloads/get/?q=Mageia4-MCC-%s-epub&doc=yes" title="Mageia MCC EPUB">EPUB</a>', + '<a rel="nofollow" href="../downloads/get/?q=Mageia4-MCC-%s-pdf&doc=yes" title="Mageia MCC PDF">PDF</a>'); ?></p> </div> </div> diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php index fc4497f98..247b7321c 100644 --- a/en/downloads/get/index.php +++ b/en/downloads/get/index.php @@ -61,7 +61,7 @@ $js_redirect = null; $reason = null; if ($doc == 'yes') { $def_file = 'definitions_doc.ini'; - list($release, $type, $lang, $extension) = explode('_', $product); // 'Mageia4_DrakX_en_epub' + list($release, $type, $lang, $extension) = explode('-', $product); // 'Mageia4-DrakX-pt_br-epub' $product = implode('_', array($release, $type, 'en', $extension)); $documentation = true; } else { |