summaryrefslogtreecommitdiff
path: root/library/WT
diff options
context:
space:
mode:
authormakitso <makitso@gmail.com>2014-05-10 17:52:24 -0500
committermakitso <makitso@gmail.com>2014-05-10 17:52:24 -0500
commit2f4e7b7af8723884a89dc842c0f860f93bd765e6 (patch)
tree931622a5b0d54a4e7409b4277b12267b3d6413ab /library/WT
parentc85da4d81423396b31e0c1a0fca0aad7c0983568 (diff)
downloadwebtrees-2f4e7b7af8723884a89dc842c0f860f93bd765e6.tar.gz
webtrees-2f4e7b7af8723884a89dc842c0f860f93bd765e6.tar.bz2
webtrees-2f4e7b7af8723884a89dc842c0f860f93bd765e6.zip
Correct regression to Family Book block placement in Dec 15 patch
Diffstat (limited to 'library/WT')
-rw-r--r--library/WT/Controller/Familybook.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/library/WT/Controller/Familybook.php b/library/WT/Controller/Familybook.php
index f39a739b69..e146c8fadd 100644
--- a/library/WT/Controller/Familybook.php
+++ b/library/WT/Controller/Familybook.php
@@ -21,6 +21,11 @@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+if (!defined('WT_WEBTREES')) {
+ header('HTTP/1.0 403 Forbidden');
+ exit;
+}
+
class WT_Controller_Familybook extends WT_Controller_Chart {
// Data for the view
public $pid =null;
@@ -184,16 +189,17 @@ class WT_Controller_Familybook extends WT_Controller_Chart {
echo '<td width="',$bwidth,'">';
}
- if ($numkids == 0) {
+ if ($numkids==0) {
$numkids = 1;
}
echo '<table><tr><td>';
if ($person) {
print_pedigree_person($person);
echo '</td><td>',
- '<img class="line2" src="', $WT_IMAGES['hline'], '" width="8" height="3" alt="">';
- } elseif ($kids === 1) {
- echo '<div style="width:', $bwidth + 19, 'px; height:', $bheight + 8, 'px;"></div></td><td>';
+ '<img class="line2" src="',$WT_IMAGES["hline"],'" width="8" height="3" alt="">';
+ } else {
+ echo '<div style="width:',$bwidth+19,'px; height:',$bheight+8,'px;"></div>',
+ '</td><td>';
}
//----- Print the spouse