mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue 2119. supporting php 5.4. modules and widgets.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12706 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ff75082eee
commit
8a7c28babc
90 changed files with 572 additions and 83 deletions
|
|
@ -132,6 +132,7 @@ class widgetController extends widget
|
|||
$oDocumentModel = &getModel('document');
|
||||
$oDocumentController = &getController('document');
|
||||
|
||||
$obj = new stdClass();
|
||||
$obj->module_srl = $module_srl;
|
||||
$obj->content = $content;
|
||||
$obj->document_srl = $document_srl;
|
||||
|
|
@ -692,6 +693,11 @@ class widgetController extends widget
|
|||
$oWidgetModel = &getModel('widget');
|
||||
$widget_info = $oWidgetModel->getWidgetInfo($widget);
|
||||
|
||||
if(!$vars)
|
||||
{
|
||||
$vars = new stdClass();
|
||||
}
|
||||
|
||||
$widget = $vars->selected_widget;
|
||||
$vars->widgetstyle = $request_vars->widgetstyle;
|
||||
|
||||
|
|
|
|||
|
|
@ -67,6 +67,11 @@ class widgetModel extends widget
|
|||
// Wanted information on the Widget
|
||||
$widget_info = $this->getWidgetInfo($widget);
|
||||
|
||||
if(!$widget_info)
|
||||
{
|
||||
$widget_info = new stdClass();
|
||||
}
|
||||
|
||||
// get easyinstall remove url
|
||||
$packageSrl = $oAutoinstallModel->getPackageSrlByPath($widget_info->path);
|
||||
$widget_info->remove_url = $oAutoinstallModel->getRemoveUrlByPackageSrl($packageSrl);
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ class widgetView extends widget
|
|||
$module_categories = $oModuleModel->getModuleCategories();
|
||||
// Get a mid list
|
||||
$site_module_info = Context::get('site_module_info');
|
||||
$args = new stdClass();
|
||||
$args->site_srl = $site_module_info->site_srl;
|
||||
$columnList = array('module_srl', 'module_category_srl', 'browser_title', 'mid');
|
||||
$mid_list = $oModuleModel->getMidList($args, $columnList);
|
||||
|
|
@ -90,6 +91,7 @@ class widgetView extends widget
|
|||
}
|
||||
else
|
||||
{
|
||||
$module_categories[0] = new stdClass();
|
||||
$module_categories[0]->list = $mid_list;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue