From ed1a0dc3d24ffce59621d9e9f471457282b8ed78 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sun, 26 Jul 2009 16:57:45 +0000 Subject: [PATCH] Per bug 19943, improve docs on addExtensionStyle(). It behaves differently depending on what you pass it :) --- includes/OutputPage.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 93318e68c2..27e2fc063a 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -99,7 +99,14 @@ class OutputPage { } function addScript( $script ) { $this->mScripts .= "\t\t" . $script . "\n"; } - function addExtensionStyle( $url ) { + /** + * Register and add a stylesheet from an extension directory. + * @param $url String path to sheet. Provide either a full url (beginning + * with 'http', etc) or a relative path from the document root + * (beginning with '/'). Otherwise it behaves identically to + * addStyle() and draws from the /skins folder. + */ + public function addExtensionStyle( $url ) { $linkarr = array( 'rel' => 'stylesheet', 'href' => $url, 'type' => 'text/css' ); array_push( $this->mExtStyles, $linkarr ); } -- 2.20.1