[Scummvm-cvs-logs] SF.net SVN: scummvm:[43852] web/trunk

fredrik_w at users.sourceforge.net fredrik_w at users.sourceforge.net
Mon Aug 31 18:45:59 CEST 2009


Revision: 43852
          http://scummvm.svn.sourceforge.net/scummvm/?rev=43852&view=rev
Author:   fredrik_w
Date:     2009-08-31 16:45:59 +0000 (Mon, 31 Aug 2009)

Log Message:
-----------
#2847559 - "WEB: Zak missing on md5 page".

Modified Paths:
--------------
    web/trunk/include/Models/DocumentationModel.php
    web/trunk/templates/documentation_md5sums.tpl

Modified: web/trunk/include/Models/DocumentationModel.php
===================================================================
--- web/trunk/include/Models/DocumentationModel.php	2009-08-31 14:24:35 UTC (rev 43851)
+++ web/trunk/include/Models/DocumentationModel.php	2009-08-31 16:45:59 UTC (rev 43852)
@@ -54,7 +54,7 @@
 		if (!($data = @file_get_contents($fname))) {
 			throw new ErrorException(self::ERROR_READING_FILE);
 		}
-		$gameid = null;
+		$gameid = 0;
 		foreach (explode("\n", $data) as $line) {
 			/* Skip comments and empty lines. */
 			if (substr($line, 0, 1) == '#' || strlen($line) == 0) {
@@ -66,9 +66,10 @@
 			 * entry.
 			 */
 			if (count($tsv) == 2) {
-				$gameid = $tsv[0];
+				#$gameid = $tsv[0];
+				$gameid++;
 				$games[$gameid] = array(
-					//'description' => Utils::ampersandEntity($tsv[1]),
+					'gameid' => $tsv[0],
 					'description' => $tsv[1],
 					'md5sums' => array(),
 				);

Modified: web/trunk/templates/documentation_md5sums.tpl
===================================================================
--- web/trunk/templates/documentation_md5sums.tpl	2009-08-31 14:24:35 UTC (rev 43851)
+++ web/trunk/templates/documentation_md5sums.tpl	2009-08-31 16:45:59 UTC (rev 43852)
@@ -23,9 +23,9 @@
 		</div>
 		<br><br>
 
-		{foreach from=$games key=gameid item=game name=games_loop}
+		{foreach from=$games item=game name=games_loop}
 			<table class="md5-table">
-				<caption>{$game.description} ({$gameid})</caption>
+				<caption>{$game.description} ({$game.gameid})</caption>
 				<thead>
 					<tr>
 						<th>MD5</th>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list