--- bareface/yakka/methods/YakkaMethodView.php 2003/01/05 00:22:26 1.1 +++ bareface/yakka/methods/YakkaMethodView.php 2003/01/06 13:35:23 1.2 @@ -10,6 +10,21 @@ if ($pageSource = $this->engine->arguments->getArgument("page-source")) { $this->engine->runtime->page->setSource($pageSource); $this->engine->runtime->page->setModifyUser($this->engine->runtime->user); + + switch($this->engine->arguments->getArgument("page-version-severity")) { + case "release": + $this->engine->runtime->page->increaseReleaseVersion(); + break; + case "major": + $this->engine->runtime->page->increaseMajorVersion(); + break; + case "minor": + $this->engine->runtime->page->increaseMinorVersion(); + break; + case "create": + $this->engine->runtime->page->setVersion("0.1.0"); + break; + } $this->engine->runtime->page->save(); if ($pageParent = $this->engine->arguments->getArgument("page-parent")) { $this->engine->runtime->page->copyGrantsOf($pageParent);