From: Marcel Werk Date: Wed, 12 Oct 2011 18:13:27 +0000 (+0200) Subject: Added constructor for class Breadcrumb X-Git-Tag: 2.0.0_Beta_1~1699^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f5fc6ed31420187ef9ebb5ce7f464f9b2ad3b64;p=GitHub%2FWoltLab%2FWCF.git Added constructor for class Breadcrumb --- 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. *