Skip to content

Commit

Permalink
Merge branch 'upstream/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
aspangaro committed May 28, 2014
2 parents dce9c2b + baa5734 commit b384f91
Show file tree
Hide file tree
Showing 169 changed files with 638 additions and 238 deletions.
3 changes: 2 additions & 1 deletion .scrutinizer.yml
Expand Up @@ -100,8 +100,9 @@ tools:
comparison_of_bit_result: true
basic_semantic_checks:
enabled: true
# Disabled unused code. In most cases, we want to keep it.
unused_code:
enabled: true
enabled: false
deprecation_checks:
enabled: true
useless_function_calls:
Expand Down
4 changes: 3 additions & 1 deletion build/debian/README.howto
Expand Up @@ -229,7 +229,9 @@ from origin/upstream and origin/pristine.
* If new upstream is available onto sourceforge, launch:
> debian/get-orig-source.sh

* Edit tgz file to remove ckeditor and phpexcel and renama file into dolibarr-x.y.z+dsfgw.tgz
* Edit tgz file to remove ckeditor and phpexcel and rename file into
dolibarr-x.y.z+dsfgw.tgz
(x.y.z = version, w start from 1 and is increased for each new import)

* Staying into git root directory, run
> git-import-orig -vv ../dolibarr-x.y.z+dsfgw.tgz
Expand Down
1 change: 0 additions & 1 deletion build/dmg/dolimamp/install.forced.php
Expand Up @@ -14,4 +14,3 @@
$force_install_dolibarrlogin='admin';
$force_install_nophpinfo='1';
$force_install_lockinstall='444';
?>
1 change: 1 addition & 0 deletions build/makepack-dolibarr.pl
Expand Up @@ -452,6 +452,7 @@
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/ckeditor/adapters`; # Keep this removal in case we embed libraries
#$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/ckeditor/_source`; # _source must be kept into tarball

$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/jquery/plugins/datatables/extras/TableTools/swf`; # Source of this flash is not available
$ret=`rm -f $BUILDROOT/$PROJECT/htdocs/includes/jquery/plugins/multiselect/MIT-LICENSE.txt`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/nusoap/lib/Mail`;
$ret=`rm -fr $BUILDROOT/$PROJECT/htdocs/includes/nusoap/samples`;
Expand Down
1 change: 0 additions & 1 deletion dev/examples/create_invoice.php
Expand Up @@ -115,4 +115,3 @@
$db->close();

return $error;
?>
23 changes: 23 additions & 0 deletions dev/rmphpclosingtag.sh
@@ -0,0 +1,23 @@
#!/bin/bash
# vim:ft=sh:ts=3:sts=3:sw=3:et:

###
# Strips the closing php tag `?>` and any following blank lines from the
# end of any PHP file in the current working directory and sub-directories. Files
# with non-whitespace characters following the closing tag will not be affected.
#
# Author: Bryan C. Geraghty <bryan@ravensight.org>
# Date: 2009-10-28
# Source: http://bryan.ravensight.org/2010/07/remove-php-closing-tag/
##

FILES=$(pcregrep -rnM --include='^.*\.php$' '^\?\>(?=([\s\n]+)?$(?!\n))' .);

for MATCH in $FILES;
do
FILE=`echo $MATCH | awk -F ':' '{print $1}'`;
TARGET=`echo $MATCH | awk -F ':' '{print $2}'`;
LINE_COUNT=`wc -l $FILE | awk -F " " '{print $1}'`;
echo "Removing lines ${TARGET} through ${LINE_COUNT} from file $FILE...";
sed -i "${TARGET},${LINE_COUNT}d" $FILE;
done;
1 change: 0 additions & 1 deletion dev/skeletons/skeleton_class.class.php
Expand Up @@ -371,4 +371,3 @@ function initAsSpecimen()
}

}
?>
1 change: 0 additions & 1 deletion dev/skeletons/skeleton_webservice_server.php
Expand Up @@ -271,4 +271,3 @@ function createSkeleton($authentication,$skeleton)
// Return the results.
$server->service($HTTP_RAW_POST_DATA);

?>
1 change: 0 additions & 1 deletion dev/translation/autotranslator.class.php
Expand Up @@ -338,4 +338,3 @@ private function translateTexts($src_texts, $src_lang, $dest_lang)
}

}
?>
1 change: 0 additions & 1 deletion dev/translation/strip_language_file.php
Expand Up @@ -264,4 +264,3 @@


return 0;
?>
1 change: 0 additions & 1 deletion htdocs/accountancy/class/accountancyaccount.class.php
Expand Up @@ -93,4 +93,3 @@ function create($user)
}

}
?>
Expand Up @@ -62,7 +62,7 @@ function __construct($db, $dirmodule, $targetmodule, $canvas, $card)
*/
private function getTitle($action)
{
global $langs;
global $langs,$conf;

$out='';

Expand Down
5 changes: 2 additions & 3 deletions htdocs/adherents/card_subscriptions.php
Expand Up @@ -138,7 +138,7 @@
if ($_POST["userid"] != $object->user_id) // If link differs from currently in database
{
$result=$object->setUserId($_POST["userid"]);
if ($result < 0) dol_print_error($object->db,$object->error);
if ($result < 0) dol_print_error('',$object->error);
$_POST['action']='';
$action='';
}
Expand Down Expand Up @@ -172,7 +172,7 @@
if (! $error)
{
$result=$object->setThirdPartyId(GETPOST('socid','int'));
if ($result < 0) dol_print_error($object->db,$object->error);
if ($result < 0) dol_print_error('',$object->error);
$_POST['action']='';
$action='';
}
Expand Down Expand Up @@ -1101,4 +1101,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/adherents/cartes/carte.php
Expand Up @@ -280,4 +280,3 @@
llxFooter();

$db->close();
?>
2 changes: 2 additions & 0 deletions htdocs/adherents/class/adherent.class.php
Expand Up @@ -95,6 +95,8 @@ class Adherent extends CommonObject
var $first_subscription_date;
var $first_subscription_amount;
var $last_subscription_date;
var $last_subscription_date_start;
var $last_subscription_date_end;
var $last_subscription_amount;
var $subscriptions=array();

Expand Down
12 changes: 8 additions & 4 deletions htdocs/adherents/class/adherent_type.class.php
Expand Up @@ -99,8 +99,10 @@ function create($user)
*/
function update($user)
{
global $hookmanager;

global $hookmanager,$conf;

$error=0;

$this->libelle=trim($this->libelle);

$sql = "UPDATE ".MAIN_DB_PREFIX."adherent_type ";
Expand All @@ -116,6 +118,8 @@ function update($user)
$result = $this->db->query($sql);
if ($result)
{
$action='update';

// Actions on extra fields (by external module or standard code)
$hookmanager->initHooks(array('membertypedao'));
$parameters=array('membertype'=>$this->id);
Expand All @@ -132,8 +136,8 @@ function update($user)
}
}
else if ($reshook < 0) $error++;


return 1;
}
else
Expand Down
2 changes: 1 addition & 1 deletion htdocs/admin/barcode.php
Expand Up @@ -64,7 +64,7 @@
{
if (GETPOST('submit_GENBARCODE_LOCATION'))
{
$location = GETPOST('genbarcodelocation','alpha');
$location = GETPOST('GENBARCODE_LOCATION','alpha');
$res = dolibarr_set_const($db, "GENBARCODE_LOCATION",$location,'chaine',0,'',$conf->entity);
}
if (GETPOST('submit_PRODUIT_DEFAULT_BARCODE_TYPE'))
Expand Down
1 change: 0 additions & 1 deletion htdocs/admin/boxes.php
Expand Up @@ -468,4 +468,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/compta.php
Expand Up @@ -170,4 +170,3 @@
$db->close();

llxFooter();
?>
1 change: 0 additions & 1 deletion htdocs/admin/fichinter.php
Expand Up @@ -511,4 +511,3 @@
$db->close();

llxFooter();
?>
1 change: 0 additions & 1 deletion htdocs/admin/index.php
Expand Up @@ -116,4 +116,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/mailing.php
Expand Up @@ -143,4 +143,3 @@ function(token) {
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/mails.php
Expand Up @@ -703,4 +703,3 @@ function initfields()
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/modules.php
Expand Up @@ -540,4 +540,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/orderdet_extrafields.php
Expand Up @@ -157,4 +157,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/osc-languages.php
Expand Up @@ -88,4 +88,3 @@
$db->close();

llxFooter();
?>
1 change: 0 additions & 1 deletion htdocs/admin/supplierorder_extrafields.php
Expand Up @@ -156,4 +156,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/syslog.php
Expand Up @@ -253,4 +253,3 @@
llxFooter();

$db->close();
?>
23 changes: 9 additions & 14 deletions htdocs/admin/system/about.php
Expand Up @@ -113,28 +113,23 @@
print '</ul>';


print $langs->trans("OfficialWebHostingService").':';
$url='http://wiki.dolibarr.org/index.php/Cloud_Solutions'; $title=$langs->trans('List');
print $langs->trans("OtherResources").':';
print '<ul>';

$url='http://saas.dolibarr.org'; $title=$langs->trans("OfficialWebHostingService");
if (preg_match('/^fr_/i',$langs->getDefaultLang())) $url='http://wiki.dolibarr.org/index.php/Solutions_de_Cloud';
if (preg_match('/^es_/i',$langs->getDefaultLang())) $url='http://wiki.dolibarr.org/index.php/Soluciones_en_la_Nube';
print '<ul>';
print '<li>';
print '<a target="_blank" href="'.$url.'">'.$title.'</a>';
print '</li>';
$url='http://partners.dolibarr.org'; $title=$langs->trans("ReferencedPreferredPartners");
print '<li>';
print '<a target="_blank" href="'.$url.'">'.$title.'</a>';
print '</li>';

print '</ul>';


llxFooter();

$db->close();
?>










1 change: 0 additions & 1 deletion htdocs/admin/system/os.php
Expand Up @@ -51,4 +51,3 @@


llxFooter();
?>
1 change: 0 additions & 1 deletion htdocs/admin/system/phpinfo.php
Expand Up @@ -120,4 +120,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/system/web.php
Expand Up @@ -64,4 +64,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/admin/tools/listsessions.php
Expand Up @@ -214,4 +214,3 @@

llxFooter();
$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/cashdesk/class/Auth.class.php
Expand Up @@ -141,4 +141,3 @@ function verif($aLogin, $aPasswd)

}

?>
1 change: 0 additions & 1 deletion htdocs/cashdesk/class/Facturation.class.php
Expand Up @@ -653,4 +653,3 @@ public function prixTotalTtc( $aTotalTtc=null )

}

?>
1 change: 0 additions & 1 deletion htdocs/cashdesk/facturation_verif.php
Expand Up @@ -166,4 +166,3 @@
header('Location: '.$redirection);
exit;

?>
1 change: 0 additions & 1 deletion htdocs/cashdesk/index_verif.php
Expand Up @@ -142,4 +142,3 @@
exit;
}

?>
1 change: 0 additions & 1 deletion htdocs/cashdesk/validation.php
Expand Up @@ -26,4 +26,3 @@
// Affichage des templates
require ('tpl/validation1.tpl.php');

?>
1 change: 0 additions & 1 deletion htdocs/comm/contact.php
Expand Up @@ -179,4 +179,3 @@
llxFooter();

$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/comm/propal/document.php
Expand Up @@ -142,4 +142,3 @@

llxFooter();
$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/comm/prospect/list.php
Expand Up @@ -466,4 +466,3 @@

llxFooter();
$db->close();
?>
1 change: 0 additions & 1 deletion htdocs/commande/contact.php
Expand Up @@ -224,4 +224,3 @@

$db->close();
llxFooter();
?>
1 change: 0 additions & 1 deletion htdocs/compta/bank/account.php
Expand Up @@ -855,4 +855,3 @@
llxFooter();

$db->close();
?>

0 comments on commit b384f91

Please sign in to comment.