1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-21 23:13:43 +02:00

202 Commits

Author SHA1 Message Date
Alfredo Ramos
ff5fe30407 [ticket/16323] Replace the spaceless tag with its homologue filter
PHPBB3-16323
2020-01-14 14:44:34 -06:00
rxu
4ed854c818
[ticket/16288] PHP 8 compatibility
PHPBB3-16288
2020-01-03 02:21:37 +07:00
mrgoldy
f21003f977
[ticket/15905] Re-add add_class and lang_defined
PHPBB3-15905
2019-09-25 20:43:01 +02:00
mrgoldy
133dfd0a84
[ticket/15905] Try it without auth
PHPBB3-15905
2019-09-25 20:39:04 +02:00
mrgoldy
eee00652e7
[ticket/15905] Resolve conflicts
PHPBB3-15905
2019-09-25 20:08:40 +02:00
mrgoldy
7989f3f71f
[ticket/15905] Try with existing phpbb extension
PHPBB3-15905
2019-09-25 20:07:09 +02:00
mrgoldy
012fe18879
[ticket/15905] Correct line endings
PHPBB3-15905
2019-09-25 19:49:24 +02:00
mrgoldy
91b89b6374
[ticket/15905] Create multiple twig extensions
PHPBB3-15905
2019-09-25 19:49:17 +02:00
Marc Alexander
9f19202152
[ticket/14948] Update lexer to be compatible with twig 2.6
PHPBB3-14948
2019-05-09 21:57:30 +02:00
Marc Alexander
e76c673e2e
[ticket/14948] Update requirements and travis build matrix
PHPBB3-14948
2019-05-09 21:49:57 +02:00
Marc Alexander
ebac54aa9e
[ticket/14948] Adjust calls for twig and phpunit updates
PHPBB3-14948
2019-05-09 21:40:06 +02:00
François-Xavier de Guillebon
c0fde5d5fd
[ticket/15508] Update loader
PHPBB3-15508
2019-05-09 21:30:39 +02:00
François-Xavier de Guillebon
40e61e4d1e
[ticket/15508] Remove call to getEnvironment() from parser
PHPBB3-15508
2019-05-09 21:30:12 +02:00
François-Xavier de Guillebon
ff35f65064
[ticket/15508] Replace Twig_NodeInterface with Twig_Node
PHPBB3-15508
2019-05-09 21:28:24 +02:00
luzpaz
a9a28859d4
[ticket/15424] Multiple typo fixes in docs & comments
Fixed typos in some docs, guidelines, some non-user-facing files.

PHPBB3-15424
2019-05-08 22:20:56 +02:00
Rubén Calvo
62921c066c
[ticket/15377] Use __DIR__ constant
PHPBB3-15377
2019-05-08 22:15:10 +02:00
Rubén Calvo
1b9507d93d
[ticket/15330] Fix typo
PHPBB3-15330
2019-05-08 22:08:21 +02:00
Rubén Calvo
16d8b0bf78
[ticket/15330] Twig function to know if a language string is defined
PHPBB3-15330
2019-05-08 22:08:15 +02:00
kasimi
3bce8bce10
[ticket/15904] Fix counting empty template blocks
PHPBB3-15904
2018-12-08 22:06:19 +01:00
Marc Alexander
11ae11a156
[ticket/15542] Only add assets version for relative paths
PHPBB3-15542
2018-10-29 22:57:53 +01:00
Marc Alexander
5d4fccd235 [ticket/15542] Always append assets versions to assets
PHPBB3-15542
2018-10-29 16:07:48 +01:00
Tristan Darricau
7f76d91128 Merge pull request #5249 from senky/ticket/15659
[ticket/15659] Fix retrieve_block_vars()

* github.com:/phpbb/phpbb:
  [ticket/15659] Fix retrieve_block_vars()
2018-07-08 18:43:16 +02:00
Jakub Senko
b5daa91650
[ticket/15659] Fix retrieve_block_vars()
PHPBB3-15659
2018-07-07 15:46:24 +02:00
Jakub Senko
52f5e54d8a
[ticket/15666] Fix array key in twig lang() call
PHPBB3-15666
2018-06-18 11:56:05 +02:00
Jakub Senko
84ff21a586
[ticket/15099] Remove type attr from INCLUDECSS and INCLUDEJS
PHPBB3-15099
2018-01-17 18:30:21 +01:00
rxu
f8fbe37936
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
2018-01-01 13:56:04 +01:00
Marc Alexander
ff18802656
[ticket/14972] Fix template context use of sizeof()
PHPBB3-14972
2018-01-01 13:56:04 +01:00
javiexin
a30693a594
[ticket/14994] Refactor template->assign_block_var
Refactor assign_block_var to use the same block selection mechanism
as is used in alter_block_array.  This allows creating new blocks
at any position in the template structure, not only on the last block.
Allows selecting a block as outer[2].middle.
Added tests. Added PHP 7.2 compatibility.

PHPBB3-14994
2017-11-01 12:29:49 +01:00
javiexin
c2043e47da
[ticket/14994] Refactor template->assign_block_var
Refactor assign_block_var to use the same block selection mechanism
as is used in alter_block_array.  This allows creating new blocks
at any position in the template structure, not only on the last block.
Allows selecting a block as outer[2].middle.
Added tests. Added PHP 7.2 compatibility.

PHPBB3-14994
2017-11-01 12:29:49 +01:00
javiexin
e32324c72a
[ticket/14994] Refactor template->assign_block_var
Refactor assign_block_var to use the same block selection mechanism
as is used in alter_block_array.  This allows creating new blocks
at any position in the template structure, not only on the last block.
Allows selecting a block as outer[2].middle.

PHPBB3-14994
2017-10-29 11:06:18 +01:00
Marc Alexander
a079c5fed0
Merge branch 'ticket/15178' into ticket/15179 2017-05-31 20:20:43 +02:00
Marc Alexander
7dc288cb89 Merge remote-tracking branch 'javiexin/ticket/15068' into 3.2.x 2017-05-29 12:13:41 +02:00
rxu
fcc8e155ec [ticket/14990] Move dispatcher object to the front of the options array
PHPBB3-14990
2017-04-16 23:40:16 +07:00
rxu
1ea114ca20 [ticket/14990] Fix event name, email parsing, installer and dispatcher calls
PHPBB3-14990
2017-04-16 22:43:50 +07:00
rxu
633bbc9c6d [ticket/14990] Add core events to the Twig environment
PHPBB3-14990
2017-04-16 22:43:49 +07:00
Marc Alexander
269150ed40
Merge pull request #4612 from javiexin/ticket/14950
[ticket/14950] Add possibility to delete a template block
2017-04-15 18:18:32 +02:00
javiexin
bd12504f6c Merge branch '3.2.x' into ticket/15068 2017-03-09 16:12:25 +01:00
javiexin
96a90d3f81 [ticket/15068] Add template vars retrieval from the template object
Add possibility to retrieve full block of vars

PHPBB3-15068
2017-03-09 16:05:39 +01:00
Marc Alexander
7a1f4d5008
Merge branch '3.1.x' into 3.2.x 2017-02-23 22:21:20 +01:00
Marc Alexander
9267235f30
Merge pull request #4605 from javiexin/ticket/14943
[ticket/14943] Fix template loop access by index
2017-02-23 22:21:16 +01:00
Marc Alexander
bdaa6e4909
Merge branch '3.1.x' into 3.2.x 2017-02-19 21:47:06 +01:00
Marc Alexander
481a592b8d
Merge pull request #4598 from javiexin/ticket/14944
[ticket/14944] Add search for template loop indexes by key
2017-02-19 21:47:00 +01:00
javiexin
f23d9bf2e0 [ticket/15068] Add template vars retrieval from the template object
PHPBB3-15068
2017-02-05 21:47:31 +01:00
javiexin
849fd9df7d [ticket/14944] Add possibility to search for template loop indexes by key
Adds a new function to the template interface, and implements it in the
context class.  The function returns the ordinal index for a specified key,
with the same structure that the key for alter_block_array.
Reuses same code. Remove unneeded references, do nothing for int keys.
Check out of bounds or wrong blockname errors.  Added tests.
Remove default parameter value.

PHPBB3-14944
2017-01-28 21:34:08 +01:00
javiexin
136c74bd1c [ticket/14950] Add possibility to delete a template block
Adds a new mode to alter_block_array to allow for the deletion of
a certain block of template variables.  The selection method is the
same as for the other modes for alter_block_array.  The passed in
vararray is ignored, and an out of bounds index is considered an error.
Added tests for the new function, fixed.

PHPBB3-14950
2017-01-12 21:28:58 +01:00
javiexin
d2ad751851 [ticket/14943] Fix template loop access by index
Allows inserting elements in a loop specified as 'outer[3].inner'.
This was coded, but malfunctioning.  Name incorrectly set on insert.
If block was empty, the insertion process should create it.
Checking for out of bounds indexes.

PHPBB3-14943
2017-01-12 21:25:39 +01:00
javiexin
20c03cccdd [ticket/14944] Add possibility to search for template loop indexes by key
Adds a new function to the template interface, and implements it in the
context class.  The function returns the ordinal index for a specified key,
with the same structure that the key for alter_block_array.
Reuses same code. Remove unneeded references, do nothing for int keys.
Check out of bounds or wrong blockname errors.  Added tests.

PHPBB3-14944
2017-01-08 00:00:47 +01:00
Marc Alexander
166320ef9e
Merge branch '3.1.x' into 3.2.x 2017-01-06 15:29:40 +01:00
rxu
49c19a267f [ticket/14958] Optimize Twig extension lang() function
PHPBB3-14958
2017-01-05 00:42:27 +07:00
javiexin
92708b2905 [ticket/14950] Add possibility to delete a template block
Adds a new mode to alter_block_array to allow for the deletion of
a certain block of template variables.  The selection method is the
same as for the other modes for alter_block_array.  The passed in
vararray is ignored, and an out of bounds index is considered an error.

PHPBB3-14944
2017-01-04 00:36:23 +01:00