Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Structure.php doesn't get executed while enabling an application from dashboard

edited September 2009 in Vanilla 2.0 - 2.8
Hi,

I have created an application in Garden framework, which has structure.php where all the database scripts are placed.

But when I enable this application, the structure.php file doesn't get executed.

So to do so, I have added a single line of code in /garden/settings/application

if ($this->Form->ErrorCount() == 0) { $Validation = new Gdn_Validation(); $ApplicationManager->RegisterPermissions($ApplicationName, $Validation); $ApplicationManager->EnableApplication($ApplicationName, $Validation); <strong> $ApplicationManager->ApplicationSetup($ApplicationName, $this, $Validation); // => Code Hack </strong> }

Is there any other way of doing it?

Comments

Sign In or Register to comment.