Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
ac4db857
Commit
ac4db857
authored
Jan 18, 2007
by
Martyn Smith
Committed by
Martyn Smith
Jan 18, 2007
Browse files
file checks for page titles
parent
96e96fae
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/file_content_check.pl
View file @
ac4db857
...
@@ -157,7 +157,10 @@ sub process {
...
@@ -157,7 +157,10 @@ sub process {
print
"
(
$author
)
",
$directory
,
$filename
,
"
has call to get_string that doesn't exist: get_string('
$tag
', '
$section
')
\n
";
print
"
(
$author
)
",
$directory
,
$filename
,
"
has call to get_string that doesn't exist: get_string('
$tag
', '
$section
')
\n
";
}
}
}
}
}
print
"
\n
";
# check for page titles
if
(
$file_data
=~
m{define.*\(.*INTERNAL.*1.*\)}
and
$file_data
!~
m{define.*\(.*JSON.*1.*\)}
and
$file_data
!~
m{define.*\(.*TITLE.*\)}
)
{
print
"
(
$author
)
",
$directory
,
$filename
,
"
is missing page title [ define('TITLE', get_string(...)); ]
\n
";
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment