mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Compare commits
2 Commits
a5e6452198
...
6645d18725
Author | SHA1 | Date | |
---|---|---|---|
|
6645d18725 | ||
|
87f4e9184e |
@ -301,9 +301,7 @@ class ContentController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function Menu($level)
|
public function Menu($level)
|
||||||
{
|
{
|
||||||
Deprecation::withSuppressedNotice(
|
Deprecation::noticeWithNoReplacment('5.4.0', 'Use getMenu() instead. You can continue to use $Menu in templates.');
|
||||||
fn() => Deprecation::notice('5.4.0', 'Use getMenu() instead. You can continue to use $Menu in templates.')
|
|
||||||
);
|
|
||||||
return $this->getMenu($level);
|
return $this->getMenu($level);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ use SilverStripe\CMS\Model\SiteTree;
|
|||||||
use SilverStripe\Control\Director;
|
use SilverStripe\Control\Director;
|
||||||
use SilverStripe\Control\HTTPResponse_Exception;
|
use SilverStripe\Control\HTTPResponse_Exception;
|
||||||
use SilverStripe\Core\Config\Config;
|
use SilverStripe\Core\Config\Config;
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
use SilverStripe\Dev\FunctionalTest;
|
use SilverStripe\Dev\FunctionalTest;
|
||||||
use SilverStripe\Versioned\Versioned;
|
use SilverStripe\Versioned\Versioned;
|
||||||
|
|
||||||
@ -205,7 +204,7 @@ class ContentControllerTest extends FunctionalTest
|
|||||||
__DIR__
|
__DIR__
|
||||||
. '/themes/controllertest/templates/SilverStripe/CMS/Tests/Controllers/'
|
. '/themes/controllertest/templates/SilverStripe/CMS/Tests/Controllers/'
|
||||||
. 'ContentControllerTestPage_test.ss',
|
. 'ContentControllerTestPage_test.ss',
|
||||||
Deprecation::withSuppressedNotice(fn() => $viewer->templates())['main']
|
$viewer->templates()['main']
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user