Skip to content

Commit 4a821fa

Browse files
committed
Merge pull request #4 from redCOMPONENT-COM/fixCallHelpersInAdminSide
Fix call extends helpers in admin side
2 parents d2338f3 + 41c54ee commit 4a821fa

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# OSX
2+
.DS_Store
3+
._*
4+
.Spotlight-V100
5+
.Trashes
6+
7+
# Windows
8+
Thumbs.db
9+
Desktop.ini
10+
11+
# PHPStorm
12+
.idea/
13+
14+
# Eclipse
15+
.buildpath
16+
.project
17+
.settings
18+
19+
# Temp files
20+
*.tmp
21+
*.bak
22+
*.swp
23+
*~.nib
24+
*~
25+
26+
# Ignore mergetool files
27+
*.orig
28+
29+
# Phing build script
30+
build.properties
31+
phing-latest.phar
32+
33+
# Never ignore
34+
!.gitignore
35+
!index.html
36+
!index.php

mvcoverride.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ private function getOverrideFileInfo($includePath, $component, $filePath, $type
226226
$baseName = basename($filePath);
227227
$prefix = substr($baseName, 0, 5);
228228

229-
if (($app->isAdmin() && $prefix == 'admin') || (!$app->isAdmin() && $prefix != 'admin') )
229+
if (($app->isAdmin() && $prefix == 'admin') || (!$app->isAdmin() && $prefix != 'admin') || !(!$app->isAdmin() && $prefix == 'admin'))
230230
{
231231
$realPath = JPATH_SITE . '/components' . substr($filePath, strlen($includePath));
232232
}

0 commit comments

Comments
 (0)