From 1ea0563d99c8e3a36fa1651a50dd0d7f38f7edea Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Thu, 4 Sep 2008 03:22:26 +0000 Subject: [PATCH] Documentation --- includes/Title.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/Title.php b/includes/Title.php index 1dbe78d6a1..cf3e03835d 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2271,13 +2271,13 @@ class Title { } /** - * Set the fragment for this title - * This is kind of bad, since except for this rarely-used function, Title objects - * are immutable. The reason this is here is because it's better than setting the - * members directly, which is what Linker::formatComment was doing previously. + * Set the fragment for this title. Removes the first character from the + * specified fragment before setting, so it assumes you're passing it with + * an initial "#". + * + * @deprecated Use Title::makeTitle() with fragment parameter. * * @param $fragment \type{\string} text - * @todo clarify whether access is supposed to be public (was marked as "kind of public") */ public function setFragment( $fragment ) { $this->mFragment = str_replace( '_', ' ', substr( $fragment, 1 ) ); -- 2.20.1