Skip to content

Commit

Permalink
Try to fix stickler
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Oct 7, 2019
1 parent 51ef2cd commit 539f435
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 6 deletions.
10 changes: 9 additions & 1 deletion dev/namespacemig/aaa.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@

namespace Dolibarr;


global $globalaaa;
$globalaaa = 'globalaaa';

/**
* faaa
*
* @return string
*/
function faaa()
{
return 'faaa';
Expand All @@ -15,6 +19,10 @@ class Aaa
{
const AAA='aaa';

/**
* do
* @return void
*/
public function do()
{
echo 'doaaa'."\n";
Expand Down
12 changes: 9 additions & 3 deletions dev/namespacemig/bbb.class.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php




global $globalbbb;
$globalbbb = 'globalbbb';

/**
* fbbb
* @return string
*/
function fbbb()
{
return 'fbbb';
Expand All @@ -14,6 +15,11 @@ function fbbb()
class Bbb
{
const BBB='bbb';

/**
* do
* @return void
*/
public function do()
{
global $globalaaa, $globalbbb;
Expand Down
6 changes: 5 additions & 1 deletion htdocs/core/modules/modSyslog.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ public function __construct($db)
$this->rights_class = 'syslog';

// Cronjobs
$comment = 'Compress and archive log files. The number of versions to keep is defined into the setup of module. ';
$comment.= 'Warning: Main application cron script must be run with same account than your web server to avoid to get log files with different owner than required by web server.';
$comment.= 'Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group.';

$this->cronjobs = array(
0 => array(
'label' => 'CompressSyslogs',
Expand All @@ -92,7 +96,7 @@ public function __construct($db)
'objectname' => 'Utils',
'method' => 'compressSyslogs',
'parameters' => '',
'comment' => 'Compress and archive log files. The number of versions to keep is defined into the setup of module. Warning: Main application cron script must be run with same account than your web server to avoid to get log files with different owner than required by web server. Another solution is to set web server Operating System group as the group of directory documents and set GROUP permission "rws" on this directory so log files will always have the group and permissions of the web server Operating System group',
'comment' => $comment,
'frequency' => 1,
'unitfrequency' => 3600 * 24,
'priority' => 50,
Expand Down
6 changes: 5 additions & 1 deletion htdocs/core/tpl/objectline_create.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,13 @@ function setforpredef() {
jQuery("#prod_entry_mode_predef").prop('checked',true).change();
<?php if (empty($conf->global->MAIN_EDIT_PREDEF_PRICEHT)) { ?>
jQuery("#price_ht").val('').hide();
jQuery("#multicurrency_price_ht").val('').hide();
<?php } else { ?>
jQuery("#price_ht").val('').show();
jQuery("#multicurrency_price_ht").val('').show();
<?php } ?>
jQuery("#price_ht").val('');
jQuery("#price_ht, #multicurrency_price_ht, #price_ttc, #fourn_ref, #tva_tx, #title_vat, #title_up_ht, #title_up_ht_currency, #title_up_ttc, #title_up_ttc_currency").hide();
jQuery("#price_ttc, #fourn_ref, #tva_tx, #title_vat, #title_up_ht, #title_up_ht_currency, #title_up_ttc, #title_up_ttc_currency").hide();
jQuery("#np_marginRate, #np_markRate, .np_marginRate, .np_markRate, #units, #title_units").hide();
jQuery("#buying_price").show();
jQuery('#trlinefordates, .divlinefordates').show();
Expand Down

0 comments on commit 539f435

Please sign in to comment.