phpBB Development: phpBB is a popular open-source bulletin board written in PHP. This repository also contains the history of version 2.
Find a file
Oleg Pudeyev 52f208900f [feature/template-engine] Get rid of orig_tpl_* in template engine.
The origins of orig_tpl_* are not pretty. Please see the following commits
and associated tickets: r9823, r9839, r9847, r10150, r10460.

In short, multiple hacks were required due to template engine reading
inheritance/storedb flags from $user (global) even when the template that
was being looked up or rendered was not the "active style of the
current user".

We no longer store templates in the database, removing half of the problem.
This commit fixes the second half of the problem by deleting
set_template_path function from template locator, and moving that logic
back into the template class' set_template. set_template now calls
set_custom_template, the latter only taking the template path and the
fallback paths as parameters. With this change template locator no longer
uses $user and does not use phpbb root path either.

All logic involving setting the user's "active" template is now
encapsulated in a single template class's function, set_template.
Setting other templates is done via set_custom_template and the caller
is responsible for determining and passing in fallback/inheritance path,
if any.

PHPBB3-9726
2011-08-04 21:45:42 -04:00
build Merge branch 'develop-olympus' into develop 2011-02-27 23:06:01 +01:00
code_sniffer/phpbb [ticket/9556] Drop php closing tags, add trailing newline 2010-11-11 19:10:55 +01:00
git-tools Merge remote branch 'igorw/ticket/9806' into develop-olympus 2011-03-20 22:31:14 +01:00
phpBB [feature/template-engine] Get rid of orig_tpl_* in template engine. 2011-08-04 21:45:42 -04:00
tests [feature/template-engine] Factor template locator out of template class. 2011-07-30 17:06:22 -04:00
.gitignore [feature/template-engine] Fixed absolute path PHP includes, added test. 2011-05-19 12:18:16 -04:00
phpunit.xml.all [ticket/9990] Add docs for running slow tests 2011-01-12 02:22:37 +01:00
phpunit.xml.dist [ticket/9990] Integrate utf normalizer tests into test suite 2011-01-11 01:06:01 +01:00
README.md [task/github-readme] Add README file for GitHub 2010-11-29 20:15:58 +01:00

phpBB

ABOUT

phpBB is a free bulletin board written in PHP.

COMMUNITY

Find support and lots more on phpBB.com! Discuss the development on area51.

CONTRIBUTE

  1. Create an account on phpBB.com
  2. Create a ticket (unless there already is one)
  3. Read our Git Contribution Guidelines; if you're new to git, also read the introduction guide
  4. Send us a pull request

LICENSE

GNU General Public License v2