@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | $this->random_id = $this->validIDs[$this->random_id]; |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param string $fieldName |
|
109 | + */ |
|
107 | 110 | protected function getCaptchField($fieldName) |
108 | 111 | { |
109 | 112 | $dataset = DataSetFactory::getDataSetByName('profiles'); |
@@ -126,6 +129,9 @@ discard block |
||
126 | 129 | return $this->getCaptchField('hint'); |
127 | 130 | } |
128 | 131 | |
132 | + /** |
|
133 | + * @return string |
|
134 | + */ |
|
129 | 135 | private function get_answer() |
130 | 136 | { |
131 | 137 | return $this->getCaptchField('answer'); |
@@ -14,8 +14,8 @@ |
||
14 | 14 | /** |
15 | 15 | * This cron script recompiles the Browscap cache |
16 | 16 | */ |
17 | -ini_set('memory_limit','-1'); // turn off memory limit for this script |
|
18 | -set_time_limit(120); // change to 2 minutes for this script |
|
17 | +ini_set('memory_limit', '-1'); // turn off memory limit for this script |
|
18 | +set_time_limit(120); // change to 2 minutes for this script |
|
19 | 19 | |
20 | 20 | require('libs/browscap-php/src/phpbrowscap/Browscap.php'); |
21 | 21 |
@@ -727,7 +727,7 @@ |
||
727 | 727 | */ |
728 | 728 | private function addJSGlobals() |
729 | 729 | { |
730 | - $this->body = $this->body.'<script> |
|
730 | + $this->body = $this->body.'<script> |
|
731 | 731 | var profilesUrl = \''.$this->profilesUrl.'\' |
732 | 732 | var loginUrl = \''.$this->loginUrl.'\' |
733 | 733 | var logoutUrl = \''.$this->logoutUrl.'\' |