This commit has been accessed 583 times via Git panel.
commit 756002a8f0c768257c75ae132fe53e77b487ce27
tree aa285dbf9bb96cbf0287b18b72eff0800cdb6617
parent 2051f9e587173958f8ad8d836c7b079d9a4cb086
author Magie Antonio <magie@majcms.org> 1305226678 +0800
committer Magie Antonio <magie@majcms.org> 1305226678 +0800
Fix Facebook support check in album.php
diff --git a/album.php b/album.php
index 720acd4..a8bb30c 100644
--- a/album.php
+++ b/album.php
@@ -352,7 +352,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
echo "</td></tr></table>";
- if (file_exists("data/fb.txt") and file_exists("data/items/$maj_d/fb.txt")) {
+ if (file_exists("data/fb.txt") and file_exists("data/items/{$_REQUEST['entry']}/fb.txt")) {
if (isset($_SERVER['HTTPS'])) {
$entry_url = "https://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), "/\\") . "/album.php?entry={$_REQUEST['entry']}&show={$_REQUEST['show']}";
tree aa285dbf9bb96cbf0287b18b72eff0800cdb6617
parent 2051f9e587173958f8ad8d836c7b079d9a4cb086
author Magie Antonio <magie@majcms.org> 1305226678 +0800
committer Magie Antonio <magie@majcms.org> 1305226678 +0800
Fix Facebook support check in album.php
diff --git a/album.php b/album.php
index 720acd4..a8bb30c 100644
--- a/album.php
+++ b/album.php
@@ -352,7 +352,7 @@ if (file_exists("images/{$_REQUEST['entry']}/album/{$_REQUEST['show']}")) {
echo "</td></tr></table>";
- if (file_exists("data/fb.txt") and file_exists("data/items/$maj_d/fb.txt")) {
+ if (file_exists("data/fb.txt") and file_exists("data/items/{$_REQUEST['entry']}/fb.txt")) {
if (isset($_SERVER['HTTPS'])) {
$entry_url = "https://" . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), "/\\") . "/album.php?entry={$_REQUEST['entry']}&show={$_REQUEST['show']}";