[Scummvm-cvs-logs] scummvm-web master -> 186b4499464ca466f8477aaa9cb7fa811481837a

sev- sev at scummvm.org
Thu Mar 3 10:31:28 CET 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
186b449946 WEB: Started to transfer all path to absolute


Commit: 186b4499464ca466f8477aaa9cb7fa811481837a
    https://github.com/scummvm/scummvm-web/commit/186b4499464ca466f8477aaa9cb7fa811481837a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2016-03-03T10:30:43+01:00

Commit Message:
WEB: Started to transfer all path to absolute

Changed paths:
    data/menus.de.xml
    data/menus.fr.xml
    data/menus.ru.xml
    data/menus.xml
    data/news/fr/20160301.xml
    data/news/ru/20160301.xml
    include/config.inc.php
    templates/index.tpl
    templates/intro_header.tpl
    templates/lang_menu.tpl
    templates/screenshots.tpl
    templates/screenshots_category.tpl



diff --git a/data/menus.de.xml b/data/menus.de.xml
index 5b126e1..fd3aa29 100644
--- a/data/menus.de.xml
+++ b/data/menus.de.xml
@@ -9,7 +9,7 @@
 		</link>
 		<link>
 			<name>Bildschirmfotos</name>
-			<href>screenshots/</href>
+			<href>/screenshots/</href>
 		</link>
 		<link>
 			<name>Forum</name>
@@ -17,11 +17,11 @@
 		</link>
 		<link>
 			<name>Downloads</name>
-			<href>downloads/</href>
+			<href>/downloads/</href>
 		</link>
 		<link>
 			<name>Spiele</name>
-			<href>games/</href>
+			<href>/games/</href>
 		</link>
 		<link>
 			<name>ScummVM-Blogs</name>
@@ -39,15 +39,15 @@
 		<class>menu-docs</class>
 		<link>
 			<name>F.A.Q.</name>
-			<href>faq/</href>
+			<href>/faq/</href>
 		</link>
 		<link>
 			<name>Dokumentation</name>
-			<href>documentation/</href>
+			<href>/documentation/</href>
 		</link>
 		<link>
 			<name>Kompatibilität</name>
-			<href>compatibility/</href>
+			<href>/compatibility/</href>
 		</link>
 		<link>
 			<name>Wiki</name>
@@ -55,7 +55,7 @@
 		</link>
 		<link>
 			<name>Mitwirkende</name>
-			<href>credits/</href>
+			<href>/credits/</href>
 		</link>
 	</group>
 	<group>
@@ -79,7 +79,7 @@
 		</link>
 		<link>
 			<name>Täglich erstellte Versionen</name>
-			<href>downloads/#daily</href>
+			<href>/downloads/#daily</href>
 		</link>
 		<link>
 			<name>Quellcode-Verzeichnis</name>
@@ -95,23 +95,23 @@
 		<class>menu-misc</class>
 		<link>
 			<name>Unterprojekte</name>
-			<href>subprojects/</href>
+			<href>/subprojects/</href>
 		</link>
 		<link>
 			<name>Demos</name>
-			<href>demos/</href>
+			<href>/demos/</href>
 		</link>
 		<link>
 			<name>Pressespiegel</name>
-			<href>press/</href>
+			<href>/press/</href>
 		</link>
 		<link>
 			<name>Kontakt</name>
-			<href>contact/</href>
+			<href>/contact/</href>
 		</link>
 		<link>
 			<name>Links</name>
-			<href>links/</href>
+			<href>/links/</href>
 		</link>
 	</group>
 </menus>
diff --git a/data/menus.fr.xml b/data/menus.fr.xml
index cff5888..a36f43a 100644
--- a/data/menus.fr.xml
+++ b/data/menus.fr.xml
@@ -9,7 +9,7 @@
 		</link>
 		<link>
 			<name>Capture d'écran</name>
-			<href>screenshots/</href>
+			<href>/screenshots/</href>
 		</link>
 		<link>
 			<name>Forums</name>
@@ -17,11 +17,11 @@
 		</link>
 		<link>
 			<name>Téléchargements</name>
-			<href>downloads/</href>
+			<href>/downloads/</href>
 		</link>
 		<link>
 			<name>Jeux</name>
-			<href>games/</href>
+			<href>/games/</href>
 		</link>
 		<link>
 			<name>Blogs sur ScummVM</name>
@@ -39,15 +39,15 @@
 		<class>menu-docs</class>
 		<link>
 			<name>F.A.Q.</name>
-			<href>faq/</href>
+			<href>/faq/</href>
 		</link>
 		<link>
 			<name>Documentation</name>
-			<href>documentation/</href>
+			<href>/documentation/</href>
 		</link>
 		<link>
 			<name>Compatibilité</name>
-			<href>compatibility/</href>
+			<href>/compatibility/</href>
 		</link>
 		<link>
 			<name>Wiki</name>
@@ -55,7 +55,7 @@
 		</link>
 		<link>
 			<name>Crédits</name>
-			<href>credits/</href>
+			<href>/credits/</href>
 		</link>
 	</group>
 	<group>
@@ -79,7 +79,7 @@
 		</link>
 		<link>
 			<name>Compilation quotidienne</name>
-			<href>downloads/#daily</href>
+			<href>/downloads/#daily</href>
 		</link>
 		<link>
 			<name>Code source</name>
@@ -95,23 +95,23 @@
 		<class>menu-misc</class>
 		<link>
 			<name>Sous-projets</name>
-			<href>subprojects/</href>
+			<href>/subprojects/</href>
 		</link>
 		<link>
 			<name>Démos</name>
-			<href>demos/</href>
+			<href>/demos/</href>
 		</link>
 		<link>
 			<name>Couverture de Presse</name>
-			<href>press/</href>
+			<href>/press/</href>
 		</link>
 		<link>
 			<name>Contact</name>
-			<href>contact/</href>
+			<href>/contact/</href>
 		</link>
 		<link>
 			<name>Liens</name>
-			<href>links/</href>
+			<href>/links/</href>
 		</link>
 	</group>
 </menus>
diff --git a/data/menus.ru.xml b/data/menus.ru.xml
index 88e7eb6..6fae212 100644
--- a/data/menus.ru.xml
+++ b/data/menus.ru.xml
@@ -9,7 +9,7 @@
 		</link>
 		<link>
 			<name>Скриншоты</name>
-			<href>screenshots/</href>
+			<href>/screenshots/</href>
 		</link>
 		<link>
 			<name>Форумы</name>
@@ -17,11 +17,11 @@
 		</link>
 		<link>
 			<name>Загрузки</name>
-			<href>downloads/</href>
+			<href>/downloads/</href>
 		</link>
 		<link>
 			<name>Игры</name>
-			<href>games/</href>
+			<href>/games/</href>
 		</link>
 		<link>
 			<name>Блоги ScummVM</name>
@@ -39,15 +39,15 @@
 		<class>menu-docs</class>
 		<link>
 			<name>ЧаВо</name>
-			<href>faq/</href>
+			<href>/faq/</href>
 		</link>
 		<link>
 			<name>Документация</name>
-			<href>documentation/</href>
+			<href>/documentation/</href>
 		</link>
 		<link>
 			<name>Совместимость</name>
-			<href>compatibility/</href>
+			<href>/compatibility/</href>
 		</link>
 		<link>
 			<name>Вики</name>
@@ -55,7 +55,7 @@
 		</link>
 		<link>
 			<name>Об авторах</name>
-			<href>credits/</href>
+			<href>/credits/</href>
 		</link>
 	</group>
 	<group>
@@ -79,7 +79,7 @@
 		</link>
 		<link>
 			<name>Ежедневные сборки</name>
-			<href>downloads/#daily</href>
+			<href>/downloads/#daily</href>
 		</link>
 		<link>
 			<name>Исходники</name>
@@ -95,23 +95,23 @@
 		<class>menu-misc</class>
 		<link>
 			<name>Подпроекты</name>
-			<href>subprojects/</href>
+			<href>/subprojects/</href>
 		</link>
 		<link>
 			<name>Демки</name>
-			<href>demos/</href>
+			<href>/demos/</href>
 		</link>
 		<link>
 			<name>Пресса о нас</name>
-			<href>press/</href>
+			<href>/press/</href>
 		</link>
 		<link>
 			<name>Контакты</name>
-			<href>contact/</href>
+			<href>/contact/</href>
 		</link>
 		<link>
 			<name>Ссылки</name>
-			<href>links/</href>
+			<href>/links/</href>
 		</link>
 	</group>
 </menus>
diff --git a/data/menus.xml b/data/menus.xml
index 371a618..04b2e4d 100644
--- a/data/menus.xml
+++ b/data/menus.xml
@@ -9,7 +9,7 @@
 		</link>
 		<link>
 			<name>Screenshots</name>
-			<href>screenshots/</href>
+			<href>/screenshots/</href>
 		</link>
 		<link>
 			<name>Forums</name>
@@ -17,11 +17,11 @@
 		</link>
 		<link>
 			<name>Downloads</name>
-			<href>downloads/</href>
+			<href>/downloads/</href>
 		</link>
 		<link>
 			<name>Games</name>
-			<href>games/</href>
+			<href>/games/</href>
 		</link>
 		<link>
 			<name>ScummVM Blogs</name>
@@ -39,15 +39,15 @@
 		<class>menu-docs</class>
 		<link>
 			<name>F.A.Q.</name>
-			<href>faq/</href>
+			<href>/faq/</href>
 		</link>
 		<link>
 			<name>Documentation</name>
-			<href>documentation/</href>
+			<href>/documentation/</href>
 		</link>
 		<link>
 			<name>Compatibility</name>
-			<href>compatibility/</href>
+			<href>/compatibility/</href>
 		</link>
 		<link>
 			<name>Wiki</name>
@@ -55,7 +55,7 @@
 		</link>
 		<link>
 			<name>Credits</name>
-			<href>credits/</href>
+			<href>/credits/</href>
 		</link>
 	</group>
 	<group>
@@ -79,7 +79,7 @@
 		</link>
 		<link>
 			<name>Daily Snapshots</name>
-			<href>downloads/#daily</href>
+			<href>/downloads/#daily</href>
 		</link>
 		<link>
 			<name>Source Code Tree</name>
@@ -95,23 +95,23 @@
 		<class>menu-misc</class>
 		<link>
 			<name>Subprojects</name>
-			<href>subprojects/</href>
+			<href>/subprojects/</href>
 		</link>
 		<link>
 			<name>Demos</name>
-			<href>demos/</href>
+			<href>/demos/</href>
 		</link>
 		<link>
 			<name>Press Coverage</name>
-			<href>press/</href>
+			<href>/press/</href>
 		</link>
 		<link>
 			<name>Contact</name>
-			<href>contact/</href>
+			<href>/contact/</href>
 		</link>
 		<link>
 			<name>Links</name>
-			<href>links/</href>
+			<href>/links/</href>
 		</link>
 	</group>
 </menus>
diff --git a/data/news/fr/20160301.xml b/data/news/fr/20160301.xml
index 8a1b562..b78fc6a 100644
--- a/data/news/fr/20160301.xml
+++ b/data/news/fr/20160301.xml
@@ -3,17 +3,17 @@
 <AUTHOR>Strangerke</AUTHOR>
 <BODY>
 <p>
-     <img src="data/news/GSoC2016Logo.png" alt="GSoC 2016 Logo" align="middle">
+     <img src="/data/news/GSoC2016Logo.png" alt="GSoC 2016 Logo" align="middle">
 </p>
- 
+
 <p>Google a annoncé hier la liste des organisations qui participeront cette année au Google Summer of Code, et à notre grand plaisir nous en faisont partie.</p>
- 
+
 <p>Lors de nos participations passées, nous nous sommes concentrés sur les jeux d'aventure. Cependant, après avoir discuté avec notre projet sœur ResidualVM, nous sommes heureux d'annoncer que cette année nous accepterons également des taches liées aux RPG.</p>
- 
+
 <p>ScummVM et ResidualVM attendent maintenant des étudiants motivés et désireux de travailler au cours de cet été à la renaissance de jeux d'aventure et de RPG.</p>
 <p>Faites-en partie ! Participez à l'Histoire et à notre meilleur GSoC à ce jour ! Jetez un coup d'œil à <a href="http://wiki.scummvm.org/index.php/Summer_of_Code/GSoC_Ideas_2016">notre page d'idées (en anglais)</a>
     ou proposez vos propres idées et contactez nous : nous vous attendons avec impatience sur IRC !</p>
- 
+
 <p>Un seul lieu : Freenode. Deux canaux : #scummvm et #residualvm</p>
- 
+
 </BODY>
diff --git a/data/news/ru/20160301.xml b/data/news/ru/20160301.xml
index 3d485e0..148775d 100644
--- a/data/news/ru/20160301.xml
+++ b/data/news/ru/20160301.xml
@@ -3,7 +3,7 @@
 <AUTHOR>Strangerke</AUTHOR>
 <BODY>
 <p>
-     <img src="data/news/GSoC2016Logo.png" alt="GSoC 2016 Logo" align="middle">
+     <img src="/data/news/GSoC2016Logo.png" alt="GSoC 2016 Logo" align="middle">
 </p>
 
 <p>Вчера компания Google опубликовала список организаций, принятых в Google Summer of Code,
diff --git a/include/config.inc.php b/include/config.inc.php
index a7149f2..00f5cd8 100644
--- a/include/config.inc.php
+++ b/include/config.inc.php
@@ -29,12 +29,11 @@ unset($url);
 /* Paths. */
 define('DIR_INCLUDE', 'include');
 define('DIR_DATA', 'data');
-define('DIR_IMAGES', 'images');
 define('DIR_NEWS', 'data/news');
 define('DIR_LANG', 'lang');
 define('DIR_COMPAT', 'data/compatibility');
 define('DIR_DOWNLOADS', '/downloads');
-define('DIR_SCREENSHOTS', 'data/screenshots');
+define('DIR_SCREENSHOTS', '/data/screenshots');
 
 /**
  * Smarty configuration. The Smarty team does not recommend putting any of the
diff --git a/templates/index.tpl b/templates/index.tpl
index 8dbe4bd..639254d 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -30,13 +30,13 @@
 	{* Header. *}
 	<div id="header">
 		<a href="{$baseurl}">
-			<img src="images/scummvm_logo.jpg" width="287" height="118" alt="{#indexLogo#}" class="float_left">
+			<img src="/images/scummvm_logo.jpg" width="287" height="118" alt="{#indexLogo#}" class="float_left">
 		</a>
 
 		{include file='lang_menu.tpl'}
 		<span>
-			<img src="images/heroes{$heroes_num|rand:0}.png" alt="{#indexCharacters#}" width="483" height="89">
-			<img src="images/scummvm-caption.png" alt="Script creation utility for Maniac Mansion Virtual Machine" width="483" height="29">
+			<img src="/images/heroes{$heroes_num|rand:0}.png" alt="{#indexCharacters#}" width="483" height="89">
+			<img src="/images/scummvm-caption.png" alt="Script creation utility for Maniac Mansion Virtual Machine" width="483" height="29">
 		</span>
 	</div>
 
@@ -47,7 +47,7 @@
 				{include file='menu_group.tpl' menu=$menu}
 			{/foreach}
 			<div>
-				<img src="images/hangmonk.gif" alt="monkey" width="55" height="57" class="monkey float_right">
+				<img src="/images/hangmonk.gif" alt="monkey" width="55" height="57" class="monkey float_right">
 			</div>
 			<div id="menu_banners">
 				<a href="http://sourceforge.net/p/scummvm/donate/">
@@ -55,26 +55,26 @@
 				</a>
 				<br>
 				<a href="http://combobreaker.com/">
-					<img src="images/scummvm_cb.png" width="88" height="32" alt="{#indexCombobreaker#}">
+					<img src="/images/scummvm_cb.png" width="88" height="32" alt="{#indexCombobreaker#}">
 				</a>
 				<br>
 				<a href="http://www.easyname.com/">
-					<img src="images/easyname-logo-big.png" width="88" height="32" alt="{#indexEasyname#}">
+					<img src="/images/easyname-logo-big.png" width="88" height="32" alt="{#indexEasyname#}">
 				</a>
 				<br>
 				<a href="http://www.gog.com/?pp=22d200f8670dbdb3e253a90eee5098477c95c23d">
-					<img src="images/GOG_button_small.png" width="88" height="32" alt="{#indexGOG#}">
+					<img src="/images/GOG_button_small.png" width="88" height="32" alt="{#indexGOG#}">
 				</a>
 				<a href="https://github.com/scummvm">
-					<img src="images/github-logo.png" alt="{#indexGithub#}" width="88" height="32">
+					<img src="/images/github-logo.png" alt="{#indexGithub#}" width="88" height="32">
  				</a>
 				<br>
 				<a href="http://www.facebook.com/pages/ScummVM/7328341409">
-					<img src="images/facebook.png" width="88" height="32" alt="{#indexFacebook#}">
+					<img src="/images/facebook.png" width="88" height="32" alt="{#indexFacebook#}">
 				</a>
 				<br>
 				<a href="http://www.twitter.com/ScummVM">
-					<img src="images/twitter.png" width="88" height="32" alt="{#indexTwitter#}">
+					<img src="/images/twitter.png" width="88" height="32" alt="{#indexTwitter#}">
 				</a>
 			</div>
 		</div>
@@ -110,10 +110,10 @@
 				<img src="http://images.sourceforge.net/images/project-support.jpg" width="88" height="32" alt="{#indexSupport#}">
 			</a>
 			<a href="http://www.gog.com/?pp=22d200f8670dbdb3e253a90eee5098477c95c23d">
-				<img src="images/GOG_button_small.png" alt="{#indexGOG#}" width="88" height="32">
+				<img src="/images/GOG_button_small.png" alt="{#indexGOG#}" width="88" height="32">
 			</a>
 			<a href="http://easyname.com">
-				<img src="images/easyname-logo-big.png" width="88" height="32" alt="{#indexEasyname#}">
+				<img src="/images/easyname-logo-big.png" width="88" height="32" alt="{#indexEasyname#}">
 			</a>
 			<a href="http://validator.w3.org/check/referer">
 				<img src="http://www.w3.org/Icons/valid-html401" width="88" height="31" alt="Valid HTML 4.01!">
@@ -123,7 +123,7 @@
 			</a>
 		</div>
 		{/strip}
-		<img src="images/tentacle.png" alt="Tentacle" width="163" height="296" class="float_right tentacle">
+		<img src="/images/tentacle.png" alt="Tentacle" width="163" height="296" class="float_right tentacle">
 	</div>
 	<div class="float_clear_left"></div>
 
@@ -134,7 +134,7 @@
 	</div>
 
 {foreach from=$js_files item=script}
-	<script type="text/javascript" src="javascripts/{$script}"></script>
+	<script type="text/javascript" src="/javascripts/{$script}"></script>
 {/foreach}
 {* Google analytics javascript. *}
 	<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
diff --git a/templates/intro_header.tpl b/templates/intro_header.tpl
index ef7cc64..6c548bf 100644
--- a/templates/intro_header.tpl
+++ b/templates/intro_header.tpl
@@ -16,15 +16,15 @@
 			</div>
 		</div>
 		<div class="rbcontent">
-			<a href="screenshots/{$random_shot.category}/{$random_shot.screenshot->getCategory()}/{$rand_pos+1}" id="screenshots_random">
+			<a href="/screenshots/{$random_shot.category}/{$random_shot.screenshot->getCategory()}/{$rand_pos+1}" id="screenshots_random">
 				<img src="{$smarty.const.DIR_SCREENSHOTS}/{$rand_file.filename}.jpg" width="128" height="96" title={#intoHeaderFullsize#} alt="{#introHeaderRandom#}">
 			</a>
 		</div>
 		<div class="rbbot">
 			<div>
 				<p>
-					<a href="screenshots/" id="screenshots_prev">{#introHeaderPrevShot#}</a>
-					<a href="screenshots/" id="screenshots_next">{#introHeaderNextShot#}</a>
+					<a href="/screenshots/" id="screenshots_prev">{#introHeaderPrevShot#}</a>
+					<a href="/screenshots/" id="screenshots_next">{#introHeaderNextShot#}</a>
 				</p>
 			</div>
 		</div>
diff --git a/templates/lang_menu.tpl b/templates/lang_menu.tpl
index db764f1..c855a1a 100644
--- a/templates/lang_menu.tpl
+++ b/templates/lang_menu.tpl
@@ -1,7 +1,7 @@
 <div id="lang-wrapper">
     <div id="drop-down">
         <ul id="langmenu">
-            <li><a href=""><img src="images/lang-icon.png" width="16" height="16">  Language</a>
+            <li><a href=""><img src="/images/lang-icon.png" width="16" height="16">  Language</a>
                 <ul>
                     <li><a href="{$pageurl}?lang=en"><code class="text-badge">EN</code>English</a></li>
                     <li><a href="{$pageurl}?lang=de"><code class="text-badge">DE</code>Deutsch</a></li>
diff --git a/templates/screenshots.tpl b/templates/screenshots.tpl
index 8b2d1a0..578aa86 100644
--- a/templates/screenshots.tpl
+++ b/templates/screenshots.tpl
@@ -12,14 +12,14 @@
 			<h2>{#screenshotsNavigation#}</h2>
 			<ul>
 			{foreach from=$screenshots item=arr}
-				<li><a href="screenshots/#{$arr.category}">{eval var=$arr.title}</a></li>
+				<li><a href="/screenshots/#{$arr.category}">{eval var=$arr.title}</a></li>
 			{/foreach}
 			</ul>
 		</div>
 
 		<div class="text">
 			<div class="random-screenshot float_right">
-				<a href="screenshots/{$random_shot.category}/{$random_shot.screenshot->getCategory()}/{$rand_pos+1}/" title="{$rand_file.caption}" rel="lightbox">
+				<a href="/screenshots/{$random_shot.category}/{$random_shot.screenshot->getCategory()}/{$rand_pos+1}/" title="{$rand_file.caption}" rel="lightbox">
 					<img src="{$smarty.const.DIR_SCREENSHOTS}/{$rand_file.filename}.jpg" alt="{$rand_file.caption}">
 				</a>
 			</div>
@@ -30,14 +30,14 @@
 	{foreach from=$screenshots item=arr}
 		<div class="subhead">
 			<a name="{$arr.category}"></a>
-			<a href="screenshots/{$arr.category}/">{$arr.title}</a>
+			<a href="/screenshots/{$arr.category}/">{$arr.title}</a>
 		</div>
 		<div class="scr-content scr-content-{$arr.category}">
 			<table>
 			{foreach from=$arr.games item=game}
 				<tr>
-					<td><img src="images/cat-{$game->getCategory()}.png" alt="" width="22" height="22"></td>
-					<td><a href="screenshots/{$arr.category}/{$game->getCategory()}/">{$game->getName()}</a>
+					<td><img src="/images/cat-{$game->getCategory()}.png" alt="" width="22" height="22"></td>
+					<td><a href="/screenshots/{$arr.category}/{$game->getCategory()}/">{$game->getName()}</a>
 					<span class="green">({$game->getFiles()|@count} shots)</span></td>
 				</tr>
 			{/foreach}
diff --git a/templates/screenshots_category.tpl b/templates/screenshots_category.tpl
index a2bc007..e4e3399 100644
--- a/templates/screenshots_category.tpl
+++ b/templates/screenshots_category.tpl
@@ -9,7 +9,7 @@
 				<h3 class="subhead">{$g->getName()}</h3>
 				{foreach from=$g->getFiles() item=fdata name=game_loop}
 					<div class="screenshot">
-						<a href="screenshots/{$category}/{$g->getCategory()}/{$smarty.foreach.game_loop.iteration}/" rel="lightbox-{$g->getCategory()}" title="{$fdata.caption}">
+						<a href="/screenshots/{$category}/{$g->getCategory()}/{$smarty.foreach.game_loop.iteration}/" rel="lightbox-{$g->getCategory()}" title="{$fdata.caption}">
 							<img src="{$smarty.const.DIR_SCREENSHOTS}/{$fdata.filename}.jpg" alt="{$g->getName()} screenshot #{$smarty.foreach.cat_loop.iteration}" height="192" width="256">
 						</a>
 						<div class="caption">{$fdata.caption}</div>
@@ -19,7 +19,7 @@
 		{/foreach}
 		<div class="spacing"></div>
 	</div>
-	<a href="screenshots/{$category}/">{#screenshotsCategoryBack#}</a>
+	<a href="/screenshots/{$category}/">{#screenshotsCategoryBack#}</a>
 
 {else}
 
@@ -28,10 +28,10 @@
 		<div class="head">{#screenshotsCategoryHeading#}</div>
 		{foreach from=$screenshots.games item=g name=cat_loop}
 			<div>
-				<h3 class="subhead"><a href="screenshots/{$category}/{$g->getCategory()}/">{$g->getName()}</a></h3>
+				<h3 class="subhead"><a href="/screenshots/{$category}/{$g->getCategory()}/">{$g->getName()}</a></h3>
 				{foreach from=$g->getFiles() item=fdata name=game_loop}
 					<div class="screenshot">
-						<a href="screenshots/{$category}/{$g->getCategory()}/{$smarty.foreach.game_loop.iteration}/" rel="lightbox-{$g->getCategory()}" title="{$fdata.caption}">
+						<a href="/screenshots/{$category}/{$g->getCategory()}/{$smarty.foreach.game_loop.iteration}/" rel="lightbox-{$g->getCategory()}" title="{$fdata.caption}">
 							<img src="{$smarty.const.DIR_SCREENSHOTS}/{$fdata.filename}.jpg" alt="{$g->getName()} screenshot #{$smarty.foreach.cat_loop.iteration}" height="192" width="256">
 						</a>
 						<div class="caption">{$fdata.caption}</div>
@@ -41,5 +41,5 @@
 			<div class="spacing"></div>
 		{/foreach}
 	</div>
-	<a href="screenshots/">{#screenshotsCategoryBack#}</a>
+	<a href="/screenshots/">{#screenshotsCategoryBack#}</a>
 {/if}






More information about the Scummvm-git-logs mailing list