diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-02-04 18:10:46 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-02-04 18:10:46 +0000 |
| commit | ec62352266aa01fd789cabf23c64da9e8c9e549b (patch) | |
| tree | 7f257e4b5346d672dad79b9d9c9f00c70606025e /hourglass.php | |
| parent | 6d4f233e92d3b82084c35adfab0743faab4ee384 (diff) | |
| download | webtrees-ec62352266aa01fd789cabf23c64da9e8c9e549b.tar.gz webtrees-ec62352266aa01fd789cabf23c64da9e8c9e549b.tar.bz2 webtrees-ec62352266aa01fd789cabf23c64da9e8c9e549b.zip | |
PHPDoc for globals
Diffstat (limited to 'hourglass.php')
| -rw-r--r-- | hourglass.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hourglass.php b/hourglass.php index 96cf7b1c84..536f71ec6d 100644 --- a/hourglass.php +++ b/hourglass.php @@ -16,6 +16,12 @@ namespace Webtrees; * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/** + * Defined in session.php + * + * @global Tree $WT_TREE + */ + define('WT_SCRIPT_NAME', 'hourglass.php'); require './includes/session.php'; @@ -58,7 +64,7 @@ $gencount = 0; <?php echo I18N::translate('Generations'); ?> </td> <td class="optionbox"> - <?php echo edit_field_integers('generations', $controller->generations, 2, $MAX_DESCENDANCY_GENERATIONS); ?> + <?php echo edit_field_integers('generations', $controller->generations, 2, $WT_TREE->getPreference('MAX_DESCENDANCY_GENERATIONS')); ?> </td> <td class="descriptionbox"> <?php echo I18N::translate('Show spouses'), help_link('show_spouse'); ?> |
