https://bugzilla.wikimedia.org/show_bug.cgi?id=57764
--- Comment #7 from Nathan Larson <[email protected]> --- (In reply to comment #6) > (In reply to comment #5) > > Question: is there some reason you can't just call > > $this->getOutput()->setRobotPolicy( $robotPolicy ) after calling > > $this->setHeaders(), as Brian Wolff mentioned? > > > > If not, this might be a WONTFIX... > > Alternative fix for this would be to create a new method of SpecialPage, call > it getRobotPolicy(), that returns the robot setting, which is called in the > default implementation of setHeaders(). > > That would probably be a cleaner solution anyways than the previous fix. Comments 5 and 6 both present workable solutions. I take it the latter has an advantage over the former? So, I guess there should be also created an OutputPage::getIndexPolicy(), OutputPage::getFollowPolicy(), and an OutputPage::getRobotPolicy() that returns an array of the index and follow policies. SpecialPage::setRobotPolicy() then would look like: public function getRobotPolicy() { return $this->getOutput()->getRobotPolicy(); } -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
