예제 #1
0
 /**
  * Check if the given title already is watched by the user, and if so
  * add watches on a new title. To be used for page renames and such.
  *
  * @param $ot Title: page title to duplicate entries from, if present
  * @param $nt Title: page title to add watches on
  */
 public static function duplicateEntries($ot, $nt)
 {
     WatchedItem::doDuplicateEntries($ot->getSubjectPage(), $nt->getSubjectPage());
     WatchedItem::doDuplicateEntries($ot->getTalkPage(), $nt->getTalkPage());
 }
예제 #2
0
 /**
  * Check if the given title already is watched by the user, and if so
  * add watches on a new title. To be used for page renames and such.
  *
  * @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, $summary = null)
 {
     //WERELATE - add optional $summary parameter
     WatchedItem::doDuplicateEntries($ot->getSubjectPage(), $nt->getSubjectPage(), $summary);
     WatchedItem::doDuplicateEntries($ot->getTalkPage(), $nt->getTalkPage());
 }