mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
Added deprecation method for LeftAndMain::add_menu_item()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@65252 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
cac5594e35
commit
c98c6c387e
@ -295,6 +295,14 @@ class LeftAndMain extends Controller {
|
|||||||
$parts = split('</?form[^>]*>', $html);
|
$parts = split('</?form[^>]*>', $html);
|
||||||
return $parts[sizeof($parts)-2];
|
return $parts[sizeof($parts)-2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use CMSMenu::add_menu_item();
|
||||||
|
*/
|
||||||
|
static function add_menu_item($code, $menuTitle, $url, $controllerClass = null, $priority = -1) {
|
||||||
|
user_error("LeftAndMain::add_menu_item is deprecated; use CMSMenu::add_menu_item", E_USER_NOTICE);
|
||||||
|
return CMSMenu::add_menu_item($code, $menuTitle, $url, $controllerClass, $priority);
|
||||||
|
}
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------------//
|
//------------------------------------------------------------------------------------------//
|
||||||
// Main UI components
|
// Main UI components
|
||||||
|
Loading…
Reference in New Issue
Block a user