mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #2478 from elabuwa/fix/use-static-for-extensibility-in-oldPageRedirector
Change self:: to static:: for better extensibility
This commit is contained in:
commit
ac786d5328
@ -29,7 +29,7 @@ class OldPageRedirector extends Extension
|
||||
$getvars = $request->getVars();
|
||||
unset($getvars['url']);
|
||||
|
||||
$page = self::find_old_page($params);
|
||||
$page = static::find_old_page($params);
|
||||
$cleanPage = trim(Director::makeRelative($page), '/');
|
||||
if (!$cleanPage) {
|
||||
$cleanPage = Director::makeRelative(RootURLController::get_homepage_link());
|
||||
|
Loading…
Reference in New Issue
Block a user