From db4edab657f1bb88463c06547f37720e992abb29 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 8 Jan 2011 19:42:24 +0000 Subject: [PATCH] Added QuickTemplate::getSkin(), useful for extensions when executing hooks passing only the template as parameter --- includes/SkinTemplate.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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']; + } } /** -- 2.20.1