Ejemplo n.º 1
0
/**
 * Initializes the page owner functions
 *
 * @return void
 * @access private
 */
function page_owner_boot()
{
    elgg_register_plugin_hook_handler('page_owner', 'system', 'default_page_owner_handler');
    _elgg_set_initial_context(_elgg_services()->request);
}
Ejemplo n.º 2
0
 /**
  * Allow plugins to rewrite the path.
  *
  * @return void
  */
 private function allowPathRewrite()
 {
     $request = $this->services->request;
     $new = $this->services->router->allowRewrite($request);
     if ($new === $request) {
         return;
     }
     $this->services->setValue('request', $new);
     _elgg_set_initial_context($new);
 }