Author: jablko
Date: Thu Oct 14 11:42:45 2010
New Revision: 8122

Log:
Cosmetic change

Modified:
   trunk/apps/qubit/modules/oai/actions/errorAction.class.php
   trunk/apps/qubit/modules/oai/actions/harvesterHarvestAction.class.php
   trunk/apps/qubit/modules/oai/actions/listIdentifiersComponent.class.php
   trunk/apps/qubit/modules/oai/actions/listRecordsComponent.class.php
   trunk/apps/qubit/modules/oai/actions/oaiAction.class.php
   trunk/apps/qubit/modules/oai/templates/errorSuccess.xml.php
   trunk/apps/qubit/modules/user/actions/editTermAclAction.class.php
   
trunk/plugins/qbAclPlugin/modules/aclGroup/actions/editTermAclAction.class.php

Modified: trunk/apps/qubit/modules/oai/actions/errorAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/oai/actions/errorAction.class.php  Thu Oct 14 
11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/oai/actions/errorAction.class.php  Thu Oct 14 
11:42:45 2010        (r8122)
@@ -51,7 +51,7 @@
     {
       $this->sets[] = new sfIsadPlugin($el);
     }
-    if ($this->request->hasParameter('verb'))
+    if (isset($this->request->verb))
     {
       switch($this->request->verb)
       {

Modified: trunk/apps/qubit/modules/oai/actions/harvesterHarvestAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/oai/actions/harvesterHarvestAction.class.php       
Thu Oct 14 11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/oai/actions/harvesterHarvestAction.class.php       
Thu Oct 14 11:42:45 2010        (r8122)
@@ -44,7 +44,7 @@
     $this->recordCount = 0;
 
     //If the request did not go through the proper routing, forward to 404
-    if (!$request->hasParameter('harvestId'))
+    if (!isset($request->harvestId))
     {
       $this->forward404();
     }

Modified: 
trunk/apps/qubit/modules/oai/actions/listIdentifiersComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/oai/actions/listIdentifiersComponent.class.php     
Thu Oct 14 11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/oai/actions/listIdentifiersComponent.class.php     
Thu Oct 14 11:42:45 2010        (r8122)
@@ -36,7 +36,7 @@
     /*
      * If limit dates are not supplied, define them as ''
      */
-    if (!$request->hasParameter('from'))
+    if (!isset($request->from))
     {
       $this->from = '';
     }
@@ -45,7 +45,7 @@
       $this->from = $request->from;
     }
 
-    if (!$request->hasParameter('until'))
+    if (!isset($request->until))
     {
       $this->until = '';
     }
@@ -59,7 +59,7 @@
     /*
      * If set is not supplied, define it as ''
      */
-    if (!$request->hasParameter('set'))
+    if (!isset($request->set))
     {
       $collection = '';
     }

Modified: trunk/apps/qubit/modules/oai/actions/listRecordsComponent.class.php
==============================================================================
--- trunk/apps/qubit/modules/oai/actions/listRecordsComponent.class.php Thu Oct 
14 11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/oai/actions/listRecordsComponent.class.php Thu Oct 
14 11:42:45 2010        (r8122)
@@ -38,7 +38,7 @@
     /*
      * If limit dates are not supplied, define them as ''
      */
-    if (!$request->hasParameter('from'))
+    if (!isset($request->from))
     {
       $this->from = '';
     }
@@ -47,7 +47,7 @@
       $this->from = $request->from;
     }
 
-    if (!$request->hasParameter('until'))
+    if (!isset($request->until))
     {
       $this->until = '';
     }
@@ -61,7 +61,7 @@
     /*
      * If set is not supplied, define it as ''
      */
-    if (!$request->hasParameter('set'))
+    if (!isset($request->set))
     {
       $collection = '';
     }

Modified: trunk/apps/qubit/modules/oai/actions/oaiAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/oai/actions/oaiAction.class.php    Thu Oct 14 
11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/oai/actions/oaiAction.class.php    Thu Oct 14 
11:42:45 2010        (r8122)
@@ -86,7 +86,7 @@
     /**
      * Validate that verb is valid
     */
-    if ($this->request->hasParameter('verb'))
+    if (isset($this->request->verb))
     {
       if (!in_array($this->request->verb, $this->oaiVerbArr))
       {

Modified: trunk/apps/qubit/modules/oai/templates/errorSuccess.xml.php
==============================================================================
--- trunk/apps/qubit/modules/oai/templates/errorSuccess.xml.php Thu Oct 14 
11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/oai/templates/errorSuccess.xml.php Thu Oct 14 
11:42:45 2010        (r8122)
@@ -2,7 +2,7 @@
 <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ 
http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd";>
   <responseDate><?php echo $date ?></responseDate>
   <request<?php echo $sf_data->getRaw('requestAttributes')?>><?php echo 
$sf_data->getRaw('path') ?></request>
-<?php if (!$sf_request->hasParameter('errorMsg')): ?>
+<?php if (!isset($sf_request->errorMsg)): ?>
   <error code="<?php echo $sf_request->errorCode ?>"/>
 <?php else: ?>
   <error code="<?php echo $sf_request->errorCode ?>"><?php echo 
$sf_request->errorMsg ?></error> 

Modified: trunk/apps/qubit/modules/user/actions/editTermAclAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/user/actions/editTermAclAction.class.php   Thu Oct 
14 11:34:35 2010        (r8121)
+++ trunk/apps/qubit/modules/user/actions/editTermAclAction.class.php   Thu Oct 
14 11:42:45 2010        (r8122)
@@ -112,7 +112,7 @@
   {
     $this->processTermAcl('termAcl');
 
-    if ($this->request->hasParameter('taxonomyAcl'))
+    if (isset($this->request->taxonomyAcl))
     {
       $this->processTermAcl('taxonomyAcl');
     }

Modified: 
trunk/plugins/qbAclPlugin/modules/aclGroup/actions/editTermAclAction.class.php
==============================================================================
--- 
trunk/plugins/qbAclPlugin/modules/aclGroup/actions/editTermAclAction.class.php  
    Thu Oct 14 11:34:35 2010        (r8121)
+++ 
trunk/plugins/qbAclPlugin/modules/aclGroup/actions/editTermAclAction.class.php  
    Thu Oct 14 11:42:45 2010        (r8122)
@@ -115,7 +115,7 @@
   protected function processForm()
   {
     $this->processTermAcl('termAcl');
-    if ($this->request->hasParameter('taxonomyAcl'))
+    if (isset($this->request->taxonomyAcl))
     {
       $this->processTermAcl('taxonomyAcl');
     }

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to