EclipseGc

Untitled

Jul 14th, 2012
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. // Seems weird
  2.   protected function getDiscovery() {
  3.     if (!isset($this->discovery)) {
  4.       $this->discovery = new HookDiscovery('aggregator_fetch_info');
  5.     }
  6.     return $this->discovery;
  7.   }
  8. // Seems less weird
  9.   protected function getDiscovery() {
  10.     if (!isset($this->discovery)) {
  11.       return parent::getDiscovery();
  12.     }
  13.     return $this->discovery;
  14.   }
Advertisement
Add Comment
Please, Sign In to add comment