From: Alexandre Emsenhuber Date: Sat, 8 Jan 2011 19:42:24 +0000 (+0000) Subject: Added QuickTemplate::getSkin(), useful for extensions when executing hooks passing... X-Git-Tag: 1.31.0-rc.0~32688 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=db4edab657f1bb88463c06547f37720e992abb29;p=lhc%2Fweb%2Fwiklou.git Added QuickTemplate::getSkin(), useful for extensions when executing hooks passing only the template as parameter --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 71046f57f0..9e557abd99 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -1386,6 +1386,15 @@ abstract class QuickTemplate { $msg = $this->translator->translate( $str ); return ( $msg != '-' ) && ( $msg != '' ); # ???? } + + /** + * Get the Skin object related to this object + * + * @return Skin object + */ + public function getSkin() { + return $this->data['skin']; + } } /**