Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
Tz Tools
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
869ee77d
authored
2010-12-13 14:58:56 +0000
by
Chris Boden
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Updated shortcode file to act like a View
1 parent
927f7552
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
com/ShortCodes/ShortCodes.php
com/ShortCodes/ShortCodes.php
View file @
869ee77
...
...
@@ -33,11 +33,14 @@ function add_shortcodes($class) {
}
}
function
getFileContents
(
$file
)
{
function
getFileContents
(
$file
,
Array
$args
=
Array
()
)
{
if
(
!
is_file
(
$file
))
{
throw
new
Exception
(
"
$file
not found"
);
throw
new
Exception
(
"
{
$file
}
not found"
);
}
extract
(
$args
);
unset
(
$args
);
ob_start
();
require
(
$file
);
$parsed_contents
=
ob_get_contents
();
...
...
Please
register
or
sign in
to post a comment