From 8f416baead93a48e5799e44b8bd2e2c4859f4e04 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 14 Sep 2007 13:18:58 +0200 Subject: auf Version 1.11 aktualisiert; Login-Bug behoben --- includes/WatchedItem.php | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'includes/WatchedItem.php') diff --git a/includes/WatchedItem.php b/includes/WatchedItem.php index b0376e3d..e4de67c8 100644 --- a/includes/WatchedItem.php +++ b/includes/WatchedItem.php @@ -14,10 +14,10 @@ class WatchedItem { * @todo document * @access private */ - function &fromUserTitle( &$user, &$title ) { + static function fromUserTitle( $user, $title ) { $wl = new WatchedItem; - $wl->mUser =& $user; - $wl->mTitle =& $title; + $wl->mUser = $user; + $wl->mTitle = $title; $wl->id = $user->getId(); # Patch (also) for email notification on page changes T.Gries/M.Arndt 11.09.2004 # TG patch: here we do not consider pages and their talk pages equivalent - why should we ? @@ -116,18 +116,13 @@ class WatchedItem { * * @param Title $ot Page title to duplicate entries from, if present * @param Title $nt Page title to add watches on - * @static */ - function duplicateEntries( $ot, $nt ) { + static function duplicateEntries( $ot, $nt ) { WatchedItem::doDuplicateEntries( $ot->getSubjectPage(), $nt->getSubjectPage() ); WatchedItem::doDuplicateEntries( $ot->getTalkPage(), $nt->getTalkPage() ); } - /** - * @static - * @access private - */ - function doDuplicateEntries( $ot, $nt ) { + private static function doDuplicateEntries( $ot, $nt ) { $fname = "WatchedItem::duplicateEntries"; $oldnamespace = $ot->getNamespace(); $newnamespace = $nt->getNamespace(); @@ -165,4 +160,4 @@ class WatchedItem { } -?> + -- cgit v1.2.2