This commit is contained in:
Romain Neutron
2013-01-21 23:21:33 +01:00
parent 4f96fbda7b
commit 23a8bbbebf
5 changed files with 12 additions and 23 deletions

View File

@@ -11,7 +11,7 @@
namespace Alchemy\Phrasea\Cache;
use \Doctrine\Common\Cache\MemcacheCache as DoctrineMemcache;
use Doctrine\Common\Cache\MemcacheCache as DoctrineMemcache;
/**
*

View File

@@ -10,6 +10,7 @@
*/
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
/**
*
@@ -19,8 +20,6 @@ use Symfony\Component\HttpFoundation\Response;
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
* @link www.phraseanet.com
*/
use \Symfony\Component\HttpFoundation\Request;
class API_V1_result
{
/**

View File

@@ -11,7 +11,7 @@
require_once __DIR__ . "/../../../classes/DailymotionWithoutOauth2.php";
use \Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request;
/**
*

View File

@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
use \Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request;
/**
*

View File

@@ -43,23 +43,13 @@ class task_period_writemeta extends task_databoxAbstract
{
$request = http_request::getInstance();
$parm2 = $request->get_parms(
'period'
, 'cleardoc'
, 'maxrecs'
, 'maxmegs'
);
$parm2 = $request->get_parms('period', 'cleardoc', 'maxrecs', 'maxmegs');
$dom = new DOMDocument();
$dom->preserveWhiteSpace = false;
$dom->formatOutput = true;
if ($dom->loadXML($oldxml)) {
$xmlchanged = false;
foreach (array(
'str:period'
, 'str:maxrecs'
, 'str:maxmegs'
, 'boo:cleardoc'
) as $pname) {
foreach (array('str:period', 'str:maxrecs', 'str:maxmegs', 'boo:cleardoc') as $pname) {
$ptype = substr($pname, 0, 3);
$pname = substr($pname, 4);
$pvalue = $parm2[$pname];