Skip to content

Commit

Permalink
Merge pull request #901 from UN-OCHA/develop
Browse files Browse the repository at this point in the history
Main -> Develop - v2.17.0
  • Loading branch information
orakili authored Sep 25, 2024
2 parents 26cb30a + b9f92c6 commit 25f1e0e
Show file tree
Hide file tree
Showing 58 changed files with 1,757 additions and 78 deletions.
39 changes: 39 additions & 0 deletions PATCHES/remove-tcpdf-footer.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
diff --git a/src/MyPdf.php b/src/MyPdf.php
index 082131a..bb3cb96 100644
--- a/src/MyPdf.php
+++ b/src/MyPdf.php
@@ -21,6 +21,7 @@ class MyPdf extends TCPDF
protected $_transf = array();
protected $_myLastPageGroup = null;
protected $_myLastPageGroupNb = 0;
+ protected $tcpdflink = false;

// used to make a radius with bezier : (4/3 * (sqrt(2) - 1))
const MY_ARC = 0.5522847498;
@@ -267,7 +268,7 @@ class MyPdf extends TCPDF
$cornerBL = null,
$cornerBR = null
) {
-
+
// init the path
$path = '';

@@ -1087,7 +1088,7 @@ class MyPdf extends TCPDF
$drawFirst = true,
$trans = false
) {
-
+
// if we want the no trigo direction : add 2PI to the begin angle, to invert the direction
if (!$direction) {
$angleBegin+= M_PI*2.;
@@ -1387,7 +1388,7 @@ class MyPdf extends TCPDF
$page = null,
$fontName = 'helvetica'
) {
-
+
// bookmark the Title if wanted
if ($bookmarkTitle) {
$this->Bookmark($titre, 0, -1);
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,25 @@ XDEBUG_MODE=coverage vendor/bin/phpunit
# without coverage
vendor/bin/phpunit
```

## For dev

```bash
drush rapi-i --alias job --verbose
drush rw-job:index --verbose

cget ocha_ai.settings --include-overridden
cget ocha_ai_tag.settings --include-overridden
cget ocha_ai_chat.settings --include-overridden
cget reliefweb_api.settings --include-overridden

cset ocha_ai.settings plugins.source.reliefweb.api_url https://dev.api-reliefweb-int.ahconu.org/v1
cset ocha_ai.settings plugins.source.reliefweb.converter_url https://xxx:[email protected]/search/converter/json
cset reliefweb_api.settings api_url https://dev.api-reliefweb-int.ahconu.org/v1
cset reliefweb_api.settings api_url_external https://dev.api-reliefweb-int.ahconu.org/v1
cset reliefweb_api.settings website: https://dev.reliefweb-int.ahconu.org

queue:list
queue:run --verbose reliefweb_job_tagger

```
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
"reliefweb/api-indexer": "^v2.8",
"reliefweb/simple-autocomplete": "^v1.3",
"reliefweb/simple-datepicker": "^v1.3",
"spipu/html2pdf": "^5.2",
"symfony/uid": "^6.2",
"unocha/common_design": "^9.4",
"unocha/gtm_barebones": "^1.1",
Expand Down
Loading

0 comments on commit 25f1e0e

Please sign in to comment.