mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 15:05:54 +00:00
Merge pull request #130 from torleif/patch-3
#129 - FIX: htmlfield editor will be created correctly
This commit is contained in:
commit
9e2b4f1586
@ -101,6 +101,10 @@ class WidgetController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function editablesegment()
|
public function editablesegment()
|
||||||
{
|
{
|
||||||
|
// use left and main to set the html config
|
||||||
|
$leftandmain = LeftAndMain::create();
|
||||||
|
$leftandmain->init();
|
||||||
|
|
||||||
$className = $this->urlParams['ID'];
|
$className = $this->urlParams['ID'];
|
||||||
if (class_exists('Translatable') && Member::currentUserID()) {
|
if (class_exists('Translatable') && Member::currentUserID()) {
|
||||||
// set current locale based on logged in user's locale
|
// set current locale based on logged in user's locale
|
||||||
|
Loading…
x
Reference in New Issue
Block a user