summaryrefslogtreecommitdiff
path: root/includes/controllers
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-11-26 11:21:49 +0000
committerfisharebest <fisharebest@gmail.com>2010-11-26 11:21:49 +0000
commit6e1532cced3d078e64d6d856dc909b368765d7e6 (patch)
treee1fa1227315f02e438d1bf5187fa9151ddee6c19 /includes/controllers
parent4ed6610c6f01011ede212bb3808add984b4dd7ed (diff)
downloadwebtrees-6e1532cced3d078e64d6d856dc909b368765d7e6.tar.gz
webtrees-6e1532cced3d078e64d6d856dc909b368765d7e6.tar.bz2
webtrees-6e1532cced3d078e64d6d856dc909b368765d7e6.zip
Handle upper/lower case mismatches at the controller level, rather than the view level.
Diffstat (limited to 'includes/controllers')
-rw-r--r--includes/controllers/family_ctrl.php4
-rw-r--r--includes/controllers/individual_ctrl.php2
-rw-r--r--includes/controllers/media_ctrl.php3
-rw-r--r--includes/controllers/note_ctrl.php4
-rw-r--r--includes/controllers/repository_ctrl.php4
-rw-r--r--includes/controllers/source_ctrl.php4
6 files changed, 16 insertions, 5 deletions
diff --git a/includes/controllers/family_ctrl.php b/includes/controllers/family_ctrl.php
index 0611e9a17e..bd8e0534d8 100644
--- a/includes/controllers/family_ctrl.php
+++ b/includes/controllers/family_ctrl.php
@@ -86,6 +86,8 @@ class FamilyController extends BaseController {
$this->famrec = $this->family->getGedcomRecord();
$this->display = $this->family->canDisplayName();
+ $this->famid=$this->family->getXref(); // Correct upper/lower case mismatch
+
//-- perform the desired action
switch($this->action) {
case 'addfav':
@@ -161,7 +163,7 @@ class FamilyController extends BaseController {
}
if ($this->showLivingHusb == false && $this->showLivingWife == false) {
- print_header(i18n::translate('Private')." ".i18n::translate('Family information'));
+ print_header(i18n::translate('Family'));
print_privacy_error();
print_footer();
exit;
diff --git a/includes/controllers/individual_ctrl.php b/includes/controllers/individual_ctrl.php
index 0bad5e33e4..593894bb98 100644
--- a/includes/controllers/individual_ctrl.php
+++ b/includes/controllers/individual_ctrl.php
@@ -100,6 +100,8 @@ class IndividualController extends BaseController {
return false;
}
+ $this->$pid=$this->indi->getXref(); // Correct upper/lower case mismatch
+
//-- perform the desired action
switch($this->action) {
case 'addfav':
diff --git a/includes/controllers/media_ctrl.php b/includes/controllers/media_ctrl.php
index be10a9c813..8eac30f987 100644
--- a/includes/controllers/media_ctrl.php
+++ b/includes/controllers/media_ctrl.php
@@ -99,9 +99,10 @@ class MediaController extends BaseController{
}
if (is_null($this->mediaobject)) return false;
-
$this->mediaobject->ged_id=WT_GED_ID; // This record is from a file
+ $this->mid=$this->mediaobject->getXref(); // Correct upper/lower case mismatch
+
//-- perform the desired action
switch($this->action) {
case 'addfav':
diff --git a/includes/controllers/note_ctrl.php b/includes/controllers/note_ctrl.php
index afbf98d810..bf3c8d923f 100644
--- a/includes/controllers/note_ctrl.php
+++ b/includes/controllers/note_ctrl.php
@@ -59,7 +59,7 @@ class NoteController extends BaseController {
$this->note->ged_id=WT_GED_ID; // This record is from a file
if (!$this->note->canDisplayDetails()) {
- print_header(i18n::translate('Private')." ".i18n::translate('Shared Note Information'));
+ print_header(i18n::translate('Shared note'));
print_privacy_error();
print_footer();
exit;
@@ -67,6 +67,8 @@ class NoteController extends BaseController {
$this->uname = WT_USER_NAME;
+ $this->nid=$this->note->getXref(); // Correct upper/lower case mismatch
+
//-- perform the desired action
switch($this->action) {
case 'addfav':
diff --git a/includes/controllers/repository_ctrl.php b/includes/controllers/repository_ctrl.php
index 975d76af0a..6f0ece4e4a 100644
--- a/includes/controllers/repository_ctrl.php
+++ b/includes/controllers/repository_ctrl.php
@@ -59,7 +59,7 @@ class RepositoryController extends BaseController {
$this->repository->ged_id=WT_GED_ID; // This record is from a file
if (!$this->repository->canDisplayDetails()) {
- print_header(i18n::translate('Private')." ".i18n::translate('Repository information'));
+ print_header(i18n::translate('Repository'));
print_privacy_error();
print_footer();
exit;
@@ -67,6 +67,8 @@ class RepositoryController extends BaseController {
$this->uname = WT_USER_NAME;
+ $this->rid=$this->repository->getXref(); // Correct upper/lower case mismatch
+
//-- perform the desired action
switch($this->action) {
case 'addfav':
diff --git a/includes/controllers/source_ctrl.php b/includes/controllers/source_ctrl.php
index 1257a9fa7a..a100a997dc 100644
--- a/includes/controllers/source_ctrl.php
+++ b/includes/controllers/source_ctrl.php
@@ -59,7 +59,7 @@ class SourceController extends BaseController {
$this->source->ged_id=WT_GED_ID; // This record is from a file
if (!$this->source->canDisplayDetails()) {
- print_header(i18n::translate('Private')." ".i18n::translate('Source Information'));
+ print_header(i18n::translate('Source'));
print_privacy_error();
print_footer();
exit;
@@ -67,6 +67,8 @@ class SourceController extends BaseController {
$this->uname = WT_USER_NAME;
+ $this->sid=$this->source->getXref(); // Correct upper/lower case mismatch
+
//-- perform the desired action
switch($this->action) {
case 'addfav':