summaryrefslogtreecommitdiff
path: root/includes/WatchedItem.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2007-09-14 13:18:58 +0200
committerPierre Schmitz <pierre@archlinux.de>2007-09-14 13:18:58 +0200
commit8f416baead93a48e5799e44b8bd2e2c4859f4e04 (patch)
treecd47ac55eb80a39e3225e8b4f3161b88ea16c2cf /includes/WatchedItem.php
parentd7d08bd1a17618c7d77a6b9b2989e9f7293d6ed6 (diff)
auf Version 1.11 aktualisiert; Login-Bug behoben
Diffstat (limited to 'includes/WatchedItem.php')
-rw-r--r--includes/WatchedItem.php17
1 files changed, 6 insertions, 11 deletions
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 {
}
-?>
+