[pLog-svn] r1772 - in plugins/trunk/print: . class/action
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed Apr 6 20:59:33 GMT 2005
Author: oscar
Date: 2005-04-06 20:59:33 +0000 (Wed, 06 Apr 2005)
New Revision: 1772
Modified:
plugins/trunk/print/class/action/printpostaction.class.php
plugins/trunk/print/pluginprint.class.php
Log:
made some arrangements to make the plugin work, since we considered it "ported" but it wasn't working at all...
Modified: plugins/trunk/print/class/action/printpostaction.class.php
===================================================================
--- plugins/trunk/print/class/action/printpostaction.class.php 2005-04-06 20:45:54 UTC (rev 1771)
+++ plugins/trunk/print/class/action/printpostaction.class.php 2005-04-06 20:59:33 UTC (rev 1772)
@@ -20,9 +20,9 @@
{
$this->_articleId = $this->_request->getValue( "articleId" );
- $val = new IntegerValidator( $this->_articleId );
- if( !$val->validate()) {
- $this->_view = new AdminErrorView( $this->_blogInfo );
+ $val = new IntegerValidator();
+ if( !$val->validate( $this->_articleId )) {
+ $this->_view = new nErrorView( $this->_blogInfo );
$this->_view->setMessage( $this->_locale->tr( "error_incorrect_article_id" ));
$this->setCommonData();
Modified: plugins/trunk/print/pluginprint.class.php
===================================================================
--- plugins/trunk/print/pluginprint.class.php 2005-04-06 20:45:54 UTC (rev 1771)
+++ plugins/trunk/print/pluginprint.class.php 2005-04-06 20:59:33 UTC (rev 1772)
@@ -27,8 +27,6 @@
{
// action to show the form to add a new story
$this->registerBlogAction( "printView", "PrintPostAction" );
- $this->registerBlogAction( "printPluginSettings", "AdminPrintPluginSettingsAction" );
- $this->registerBlogAction( "printPluginUpdateSettings", "AdminPrintPluginUpdateSettingsAction" );
// add a couple of menu entries
//$this->addMenuEntry( "/menu/controlCenter/manageSettings", "printPluginSettings", "admin.php?op=printPluginSettings", "", true, false );
@@ -43,7 +41,7 @@
function printView( $article )
{
$rg =& RequestGenerator::getRequestGenerator( $this->_blogInfo );
- return $rg->getBaseUrl()."/print.php?articleId=".$article->getId()."&blogId=".$this->blogInfo->getId();
- }
- }
+ return $rg->getBaseUrl()."/index.php?op=printView&articleId=".$article->getId()."&blogId=".$this->blogInfo->getId();
+ }
+ }
?>
\ No newline at end of file
More information about the pLog-svn
mailing list