| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | |
| |
| |
| | |
PHPBB3-11718
|
| |/
|
|
| |
PHPBB3-11707
|
| |
|
|
|
|
| |
Also includephp_absolute.html
PHPBB3-11664
|
| |
|
|
| |
PHPBB3-11598
|
| |
|
|
| |
PHPBB3-11598
|
| |
|
|
| |
PHPBB3-11598
|
| |
|
|
| |
PHPBB3-11598
|
| |
|
|
| |
PHPBB3-11598
|
| |
|
|
|
|
|
|
| |
Was originally moved because I thought that a new test file might mean a new
instance and the memory would be cleared, fixing the original problem, but
that isn't true and it was fixed another way.
PHPBB3-11598
|
| |
|
|
|
|
|
| |
Various tests were broken completely, and some things such as whitespace
changed with Twig
PHPBB3-11598
|
| |
|
|
| |
PHPBB3-11598
|
| |
|
|
|
|
| |
Unit tests for advanced DEFINE and ENDDEFINE
PHPBB3-11482
|
| |
|
|
| |
PHPBB3-11323
|
| |\
| |
| |
| |
| | |
* develop-olympus:
[ticket/11323] Add tests for inclusion of defined variables
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds 2 tests for the template engine. The test using
include_define_variable.html will test if a defined variable, which was
defined with another template variable, can be used to include a file.
The second test will do the same inside a loop using a loop variable.
PHPBB3-11323
|
| | |
| |
| |
| | |
PHPBB3-11159
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
A new method to handle this type of path was added and
compile_tag_include, compile_tag_include_php and
compile_tag_include_js were modified to use it appropriately.
Tests were added for these three macros also.
PHPBB3-10970
|
| | |
| |
| |
| |
| |
| | |
Changing template paths in tests from absolute to relative
PHPBB3-10800
|
| | |
| |
| |
| |
| |
| | |
Removing static from data provider functions
PHPBB3-10733
|
| | |
| |
| |
| |
| |
| | |
Updating code in test cases for new template classes.
PHPBB3-10632
|
| | |
| |
| |
| |
| |
| | |
Adding test case for append_var
PHPBB3-10666
|
| |\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
* develop-olympus:
[ticket/9916] Changing header in non-distributed files
[ticket/9916] Changing coding guidelines license
[ticket/9916] Updating License in the header
Conflicts:
tests/mock/cache.php
|
| | |
| |
| |
| | |
PHPBB3-9916
|
| | |
| |
| |
| |
| |
| |
| |
| | |
When template tests are skipped because cache directory is not
writable, include path to the cache directory into the message
saying it is not writable.
PHPBB3-10354
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit adds a template path provider to separate the process of locating
(cached) paths in extensions from the template engine. The locator is supplied
with a list of paths from the path provider.
Admin templates can now be created in ext/<ext>/adm/style/ and regular
templates go into ext/<ext>/styles/<style>/template/. Extension templates
override regular templates. So if an extension supplies a file with a name
used in phpBB, the extension's file will be used.
A side-effect of this commit: Locator and Provider are now able to deal with
arbitrary levels of template inheritance. So we can expose this through
phpbb_template if we choose to, and allow styles to inherit from inherited
styles.
PHPBB3-10323
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 'develop' of git://github.com/phpbb/phpbb3:
[ticket/10392] Alter parent namespace stripping.
[ticket/10392] Test for magic loop variables with nested namespaces.
[ticket/10392] Missed fix for S_BLOCK_NAME.
[ticket/10392] Fix access to nested special block variables.
|
| | | |
| | |
| | |
| | | |
PHPBB3-10392
|
| |/ /
| |
| |
| | |
PHPBB3-10384
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Most template variables can now have their PHP variable name resolved instead
of only compiling directly. This allows for the use of block vars in INCLUDE
statements. This does not work for language variables since they require
multiple checks. Added tests for the new types of allowed INCLUDEs.
PHPBB3-10322
|
| | |
| |
| |
| | |
PHPBB3-10322
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Template locator is responsible for maintaining mapping from template
handles to filenames and paths, and provides resolution services
using these mappings.
Template locator is aware of template inheritance and is capable of
checking template file existence on the filesystem.
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The template stream filter no longer depends on the $config global.
Instead it uses a 'allow_php' param that is passed via
stream_bucket_append's last argument.
Tests also adjusted.
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| | |
It is now handled by autoloading.
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| | |
In tests there is no need to catch unexpected exceptions.
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| | |
When testing eval code path, compiled templates may not be written
to the file system, and unconditionally trying to copy them
breaks tests.
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| | |
As long as the exception message has the correct description and
file name we should not care which function raised the exception.
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
compile_tag_if had the flawed approach of adding an isset statement for
all variables to the beginning of the if. This fails for negative
expressions, and checking those takes a considerable effort.
The easier solution is to make the variable expression itself
conditional, defaulting to null if it is not set.
Thanks to naderman for the solution.
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
This currently does not pass, thus it is commented out.
The reuse appears implausible in the same file, however it may be
also done across template files where it is much harder to detect.
PHPBB3-9726
|
| | |
| |
| |
| | |
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| | |
This error resulted in a dot from the namespace being placed into
variable reference in compiled template code, thus creating bogus
compiled template code.
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
This currently fails.
This test is a reduced version of permission_mask template in acp, which
is not correctly compiled by the current template engine code.
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| | |
The code is now supposed to be notice-free, therefore there is no need
to have the notices silenced.
PHPBB3-9726
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
phpbb_template_compile is now much simpler. It takes complete file paths
as inputs, either source template path or source template path and output
compiled template path. The number of methods also went down to two -
compile template and returned compiled text or compile and write to file.
phpbb_compile class is responsible for determining source and compiled
paths. It already had all the data necessary for this, now the code is
in the same place as the data it uses.
PHPBB3-9726
|