# HG changeset patch # User Matti Hamalainen # Date 1386353611 -7200 # Node ID bc1755a9f89fec38caf07ba22b072ec0b39d57b4 # Parent 9e987c975dcaba27c86eace01ccc09777d7b4a1c Add filenames to be shown in current/prev entry in compo control. diff -r 9e987c975dca -r bc1755a9f89f admajax.php --- a/admajax.php Fri Dec 06 19:55:57 2013 +0200 +++ b/admajax.php Fri Dec 06 20:13:31 2013 +0200 @@ -200,7 +200,12 @@ $show_id, $compo_id); if (($entry = stFetchSQL($sql)) !== false) - return "#".$entry["show_id"]." - ".chentities($entry["name"])." by ".chentities($entry["author"]); + { + return + "#".$entry["show_id"]." - ".chentities($entry["name"]). + " by ".chentities($entry["author"])."
". + "File: ".chentities(substr($entry["filename"], 0, 40)).""; + } } return "-"; } @@ -219,12 +224,12 @@ $strPrevEntry = stGetInfoOneEntryData(stGetDisplayVar("compoPrevEntry"), $compoID); } else - $strCompo = $strCurrEntry = $strPrevEntry = "-"; + $strCompo = $strCurrEntry = $strCurrEntryFile = $strPrevEntry = "-"; return $indent."
Current compo:
".$strCompo."
\n". - $indent."
Current entry:
".$strCurrEntry."
\n". - $indent."
Previous entry:
".$strPrevEntry."
\n"; + $indent."
Current entry:
".$strCurrEntry."
\n". + $indent."
Previous entry:
".$strPrevEntry."
\n"; }