Development

#3317 ([Patch] Wrong variable in renderComponent functions of sfAction)

You must first sign up to be able to contribute.

Ticket #3317 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

[Patch] Wrong variable in renderComponent functions of sfAction

Reported by: Dannyrulez Assigned to: fabien
Priority: major Milestone: 1.1.0 beta4
Component: controller Version: 1.1.0 BETA2
Keywords: Cc:
Qualification: Unreviewed

Description

You are using this var: $moduleName in the function definition

  public function renderComponent($moduleName, $componentName)

and in the call you are using $templateName

return $this->renderText(get_component($templateName, $componentName, $this->varHolder->getAll()));

File: symfony/action/sfAction.class.php Line: 299

  public function renderComponent($moduleName, $componentName)
  {
    sfLoader::loadHelpers('Partial');

    return $this->renderText(get_component($templateName, $componentName, $this->varHolder->getAll()));
  }

is supposed to be:

  public function renderComponent($moduleName, $componentName)
  {
    sfLoader::loadHelpers('Partial');

    return $this->renderText(get_component($moduleName, $componentName, $this->varHolder->getAll()));
  }

Change History

04/11/08 23:34:43 changed by dwhittle

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r8427.