mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Remove commented code
This commit is contained in:
@@ -644,17 +644,7 @@ class User_Query implements User_QueryInterface
|
||||
*/
|
||||
public function like($like_field, $like_value)
|
||||
{
|
||||
|
||||
// if ($like_field == self::LIKE_NAME)
|
||||
// {
|
||||
// $this->like_field[self::LIKE_FIRSTNAME] = trim($like_value);
|
||||
// $this->like_field[self::LIKE_LASTNAME] = trim($like_value);
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
$this->like_field[trim($like_field)] = trim($like_value);
|
||||
// }
|
||||
|
||||
$this->total = $this->page = $this->total_page = null;
|
||||
|
||||
return $this;
|
||||
|
@@ -247,9 +247,6 @@ class ftpclient
|
||||
echo $e;
|
||||
}
|
||||
$ret = $this->nb_get($localfile, $remotefile, 0);
|
||||
|
||||
// if($this->debug)
|
||||
// echo "On doit avoir a la fin $remotefile de size ".filesize($localfile)."\n<br>";
|
||||
}
|
||||
if ($ret != FTP_FINISHED) {
|
||||
throw new Exception('Erreur lors du transfert de fichier');
|
||||
|
@@ -104,7 +104,6 @@ class patch_370alpha8a implements patchInterface
|
||||
if ($task['class'] === 'task_period_workflow01') {
|
||||
$t = $tasks->appendChild($dom->createElement('task'));
|
||||
$t->setAttribute('active', '0');
|
||||
// $t->setAttribute('name', 'imported from \'' . $task->getTitle() . '\'');
|
||||
$t->setAttribute('name', 'imported from \'' . $task['name'] . '\'');
|
||||
$t->setAttribute('action', 'update');
|
||||
|
||||
|
@@ -32,7 +32,6 @@ class patchthesaurus_100 implements patchthesaurus_interface
|
||||
foreach ($te1 as $tei) {
|
||||
$th->appendChild($tei);
|
||||
$this->fixThesaurus2($domth, $tei, 0, $unicode);
|
||||
// $tei->parentNode->removeChild($tei);
|
||||
}
|
||||
$te0->parentNode->removeChild($te0);
|
||||
}
|
||||
@@ -58,9 +57,9 @@ class patchthesaurus_100 implements patchthesaurus_interface
|
||||
$tenode->removeAttribute("v");
|
||||
$tenode->removeAttribute("w");
|
||||
$tenode->removeAttribute("k");
|
||||
if ($tenode->getAttribute("nextid") == "")
|
||||
if ($tenode->getAttribute("nextid") == "") {
|
||||
$tenode->setAttribute("nextid", "0");
|
||||
// $tenode->setAttribute("id", "0.".$tenode->getAttribute("id"));
|
||||
}
|
||||
$todel = [];
|
||||
for ($n = $tenode->firstChild; $n; $n = $n->nextSibling) {
|
||||
if ($n->nodeName == "ta")
|
||||
|
@@ -20,7 +20,6 @@ class patchthesaurus_201 implements patchthesaurus_interface
|
||||
$xp = new DOMXPath($domth);
|
||||
$te = $xp->query("/thesaurus//te");
|
||||
for ($i = 0; $i < $te->length; $i ++) {
|
||||
// $id = "S" . substr($te->item($i)->getAttribute("id"), 1);
|
||||
$id = $te->item($i)->getAttribute("id");
|
||||
$nid = (int) ($te->item($i)->getAttribute("nextid"));
|
||||
for ($n = $te->item($i)->firstChild; $n; $n = $n->nextSibling) {
|
||||
|
@@ -134,7 +134,6 @@ class patchthesaurus_203 implements patchthesaurus_interface
|
||||
if ($pid != "") {
|
||||
$id = $node->getAttribute("id");
|
||||
if (substr($id, 1, strlen($pid)) != substr($pid, "1") . ".") {
|
||||
//printf("pid='%s', id='%s'\n", $pid, $id);
|
||||
$nid = $node->parentNode->getAttribute("nextid");
|
||||
$node->parentNode->setAttribute("nextid", $nid + 1);
|
||||
$node->setAttribute("id", $newid = ($pid . "." . $nid));
|
||||
|
@@ -136,7 +136,6 @@ class patchthesaurus_204 implements patchthesaurus_interface
|
||||
if ($pid != "") {
|
||||
$id = $node->getAttribute("id");
|
||||
if (substr($id, 1, strlen($pid)) != substr($pid, "1") . ".") {
|
||||
//printf("pid='%s', id='%s'\n", $pid, $id);
|
||||
$nid = $node->parentNode->getAttribute("nextid");
|
||||
$node->parentNode->setAttribute("nextid", $nid + 1);
|
||||
$node->setAttribute("id", $newid = ($pid . "." . $nid));
|
||||
|
@@ -364,7 +364,6 @@ class phraseadate
|
||||
break;
|
||||
default:
|
||||
$n = 0;
|
||||
// printf("format de date inconnu : %s\n", $format);
|
||||
break;
|
||||
}
|
||||
if ($n > 0) {
|
||||
|
Reference in New Issue
Block a user