Skip to content

Commit

Permalink
Deprecated '/administration/' context is now removed in notifyMembers…
Browse files Browse the repository at this point in the history
…. Extensions should be using '/backend/' instead.
  • Loading branch information
Brendan Abbott committed May 17, 2011
1 parent 3eb8546 commit be84af5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions symphony/lib/toolkit/class.extensionmanager.php
Expand Up @@ -527,16 +527,7 @@ public function notifyMembers($delegate, $page, array $context=array()){

// Make sure $page is an array
if(!is_array($page)){
// Support for pseudo-global delegates (including legacy support for /administration/)
if(preg_match('/\/?(administration|backend)\/?/i', $page)){
$page = array(
'backend', '/backend/',
'administration', '/administration/'
);
}
else{
$page = array($page);
}
$page = array($page);
}

// Support for global delegate subscription
Expand Down

0 comments on commit be84af5

Please sign in to comment.