From 7f5fc6ed31420187ef9ebb5ce7f464f9b2ad3b64 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 12 Oct 2011 20:13:27 +0200 Subject: [PATCH] Added constructor for class Breadcrumb --- .../files/lib/system/breadcrumb/Breadcrumb.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php index 96180792dd..20a857b1c6 100644 --- a/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php +++ b/wcfsetup/install/files/lib/system/breadcrumb/Breadcrumb.class.php @@ -25,6 +25,17 @@ class Breadcrumb { */ protected $url = ''; + /** + * Creates a new Breadcrumb object. + * + * @param string $label + * @param string $url + */ + public function __construct($label = null, $url = null) { + if ($label !== null) $this->setLabel($label); + if ($url !== null) $this->setURL($url); + } + /** * Sets the displayed label. * -- 2.20.1