Révision a2baadd1
Ajouté par Assos Assos il y a environ 10 ans
drupal7/sites/all/modules/print/print_join_page_counter.inc | ||
---|---|---|
11 | 11 |
// PHP 4 doesn't call constructors of the base class automatically from a |
12 | 12 |
// constructor of a derived class. It is your responsibility to propagate |
13 | 13 |
// the call to constructors upstream where appropriate. |
14 |
function construct($table, $left_table, $left_field, $field, $extra = array(), $type = 'LEFT') {
|
|
14 |
function construct($table = NULL, $left_table = NULL, $left_field = NULL, $field = NULL, $extra = array(), $type = 'LEFT') {
|
|
15 | 15 |
parent::construct($table, $left_table, $left_field, $field, $extra, $type); |
16 | 16 |
} |
17 | 17 |
|
18 | 18 |
function build_join($select_query, $table, $view_query) { |
19 |
$this->left_field = "CONCAT('node/', " . $this->left_table . '.' . $this->left_field . ')'; |
|
20 |
$this->left_table = NULL; |
|
19 |
if ($this->left_table) { |
|
20 |
$this->left_field = "CONCAT('node/', $this->left_table.$this->left_field)"; |
|
21 |
$this->left_table = NULL; |
|
22 |
} |
|
21 | 23 |
parent::build_join($select_query, $table, $view_query); |
22 | 24 |
} |
23 | 25 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules