mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
Fix unnecessary assignment by reference, which causes E_NOTICE
This commit is contained in:
parent
ed15587c4f
commit
6c113c22ed
35 changed files with 80 additions and 84 deletions
|
|
@ -214,7 +214,7 @@ class LayoutAdminView extends Layout
|
|||
|
||||
Context::set('is_sitemap', '0');
|
||||
$script = '<script src="./modules/layout/tpl/js/layout_modify.js"></script>';
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
$content = $oTemplate->compile($this->module_path.'tpl/', 'layout_info_view');
|
||||
|
||||
Context::set('content', $content);
|
||||
|
|
@ -336,7 +336,7 @@ class LayoutAdminView extends Layout
|
|||
FileHandler::writeFile($edited_layout_file, $code);
|
||||
|
||||
// Compile
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
|
||||
$layout_path = $layout_info->path;
|
||||
$layout_file = 'layout';
|
||||
|
|
@ -344,7 +344,6 @@ class LayoutAdminView extends Layout
|
|||
$layout_tpl = $oTemplate->compile($layout_path, $layout_file, $edited_layout_file);
|
||||
Context::set('layout','none');
|
||||
// Convert widgets and others
|
||||
$oContext = &Context::getInstance();
|
||||
Context::set('layout_tpl', $layout_tpl);
|
||||
// Delete Temporary Files
|
||||
FileHandler::removeFile($edited_layout_file);
|
||||
|
|
@ -395,7 +394,7 @@ class LayoutAdminView extends Layout
|
|||
Context::addHtmlHeader($script);
|
||||
}
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
$oTemplate = TemplateHandler::getInstance();
|
||||
Context::set('content', $oTemplate->compile($this->module_path.'tpl','about_faceoff'));
|
||||
// Change widget codes in Javascript mode
|
||||
$oWidgetController = getController('widget');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue