Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility/Fix for symphony 2.6.x #25

Open
wants to merge 1 commit into
base: integration
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,11 +234,11 @@ public function frontendPrePageResolve($context)
if (isset($page_can_resolve['filelocation'])) {
// Remove the PAGES path, .xsl and replace any _ with /.
// Basically reconstruct the 'path' as if it was a URL request
$resolved_path = '/' . str_replace(
$resolved_path =str_replace(
array(PAGES . '/', '.xsl', '_'),
array('', '', '/'),
$page_can_resolve['filelocation']
) . '/';
);

// Now does the page we're routing from already exist in Symphony? No? Redirect.
if (preg_match('~^' . preg_quote($resolved_path) . '~i', $route['original']) == false) {
Expand Down