From 219bde94fe1f183242d09074ba7586635087314b Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 14 Jan 2014 18:51:36 +0000 Subject: [PATCH] extended htmlAccountPageButton --- lam/lib/html.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 40c6d6b1..5a86b089 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -3,7 +3,7 @@ $Id$ This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2010 - 2013 Roland Gruber + Copyright (C) 2010 - 2014 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -1003,10 +1003,13 @@ class htmlAccountPageButton extends htmlButton { * @param String $value button text or image (16x16px, relative to graphics folder) * @param String $isImageButton image or text button (default text) */ - function __construct($targetModule, $targetPage, $identifier, $value, $isImageButton = false) { + function __construct($targetModule, $targetPage, $identifier, $value, $isImageButton = false, $title = null) { $this->name = htmlspecialchars('form_subpage_' . $targetModule . '_' . $targetPage . '_' . $identifier); $this->value = $value; $this->isImageButton = $isImageButton; + if ($title != null) { + $this->setTitle($title); + } } }