Move module Don in htdocs->donations

This commit is contained in:
aspangaro 2015-03-19 05:17:10 +01:00
parent 4e68586389
commit 7b6cb59f4b
6 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2010 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2011 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2014 Alexandre Spangaro <alexandre.spangaro@gmail.com>
* Copyright (C) 2015 Alexandre Spangaro <alexandre.spangaro@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -64,7 +64,7 @@ class modDon extends DolibarrModules
$this->requiredby = array();
// Config pages
$this->config_page_url = array("dons.php");
$this->config_page_url = array("dons.php@donations");
// Constants
$this->const = array ();
@ -146,8 +146,8 @@ class modDon extends DolibarrModules
global $conf;
$sql = array(
"DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = '".$this->const[0][2]."' AND entity = ".$conf->entity,
"INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES('".$this->const[0][2]."','donation',".$conf->entity.")",
"DELETE FROM ".MAIN_DB_PREFIX."document_model WHERE nom = '".$this->const[0][4]."' AND entity = ".$conf->entity,
"INSERT INTO ".MAIN_DB_PREFIX."document_model (nom, type, entity) VALUES('".$this->const[0][4]."','donation',".$conf->entity.")",
);
return $this->_init($sql,$options);
@ -168,4 +168,4 @@ class modDon extends DolibarrModules
return $this->_remove($sql,$options);
}
}
}