mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Cleanup
This commit is contained in:
@@ -1232,9 +1232,6 @@ class task_period_outofdate extends task_abstract
|
|||||||
);
|
);
|
||||||
|
|
||||||
phrasea::headers(200, true, 'application/json', 'UTF-8', false);
|
phrasea::headers(200, true, 'application/json', 'UTF-8', false);
|
||||||
// return("hello4");
|
|
||||||
//var_dump($parm2);
|
|
||||||
//return;
|
|
||||||
$ret = NULL;
|
$ret = NULL;
|
||||||
switch($parm2['ACT'])
|
switch($parm2['ACT'])
|
||||||
{
|
{
|
||||||
|
@@ -109,7 +109,6 @@ class ControllerFeedApp extends \PhraseanetWebTestCaseAuthenticatedAbstract
|
|||||||
{
|
{
|
||||||
$appbox = appbox::get_instance();
|
$appbox = appbox::get_instance();
|
||||||
$crawler = $this->client->request('POST', '/feeds/requestavailable/');
|
$crawler = $this->client->request('POST', '/feeds/requestavailable/');
|
||||||
var_dump($this->client->getResponse()->getStatusCode());
|
|
||||||
$this->assertTrue($this->client->getResponse()->isOk());
|
$this->assertTrue($this->client->getResponse()->isOk());
|
||||||
$feeds = Feed_Collection::load_all($appbox, self::$user);
|
$feeds = Feed_Collection::load_all($appbox, self::$user);
|
||||||
foreach ($feeds->get_feeds() as $one_feed)
|
foreach ($feeds->get_feeds() as $one_feed)
|
||||||
|
@@ -41,7 +41,6 @@ if (!$parm['bas'])
|
|||||||
|
|
||||||
$parm["pag"] = (int) $parm["pag"];
|
$parm["pag"] = (int) $parm["pag"];
|
||||||
$mod = $user->getPrefs('view');
|
$mod = $user->getPrefs('view');
|
||||||
//var_dump($session->get_ses_id(), phrasea_open_session($session->get_ses_id(), $session->get_usr_id()));
|
|
||||||
function dmicrotime_float($message = '', $stack = 'def')
|
function dmicrotime_float($message = '', $stack = 'def')
|
||||||
{
|
{
|
||||||
static $last = array();
|
static $last = array();
|
||||||
@@ -49,9 +48,6 @@ function dmicrotime_float($message = '', $stack = 'def')
|
|||||||
|
|
||||||
$new = ((float) $usec + (float) $sec);
|
$new = ((float) $usec + (float) $sec);
|
||||||
|
|
||||||
// if (isset($last[$stack]) && $message)
|
|
||||||
// echo "$stack \t\t temps : $message " . ($new - $last[$stack]) . "\n";
|
|
||||||
|
|
||||||
$last[$stack] = $new;
|
$last[$stack] = $new;
|
||||||
|
|
||||||
return ($new - $last[$stack]);
|
return ($new - $last[$stack]);
|
||||||
|
@@ -64,9 +64,6 @@ if ($parm["bid"] !== null)
|
|||||||
$s_thits .= ( str_replace('d', '.', $rowbas['value']) . ';');
|
$s_thits .= ( str_replace('d', '.', $rowbas['value']) . ';');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($parm['debug'])
|
|
||||||
var_dump($s_thits);
|
|
||||||
|
|
||||||
if ($parm['typ'] == 'CT')
|
if ($parm['typ'] == 'CT')
|
||||||
{
|
{
|
||||||
$dom = $databox->get_dom_cterms();
|
$dom = $databox->get_dom_cterms();
|
||||||
|
@@ -242,10 +242,7 @@ function simplified($t)
|
|||||||
return(array('a' => $sa, 'u' => $su));
|
return(array('a' => $sa, 'u' => $su));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($parm['debug'])
|
print(p4string::jsonencode(array('parm' => $parm, 'result' => $result)));
|
||||||
var_dump($result);
|
|
||||||
else
|
|
||||||
print(p4string::jsonencode(array('parm' => $parm, 'result' => $result)));
|
|
||||||
|
|
||||||
if ($parm['debug'])
|
if ($parm['debug'])
|
||||||
print("</pre>");
|
print("</pre>");
|
||||||
|
Reference in New Issue
Block a user