Skip to content
Snippets Groups Projects
Commit af57edd3 authored by Kevin Abel's avatar Kevin Abel
Browse files

Fix warnings and stardards issues

parent 55a2efe2
Branches master
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class Utilities
public static function linkURLs($html)
{
$html = preg_replace('/\s(www\.unl\.edu.*)/', ' http://$1', $html);
return preg_replace_callback('/(http:\/\/[^<^\s]+)/', array('UNL_UndergraduateBulletin_EPUB_Utilities', 'linkHref'), $html);
return preg_replace_callback('/(http:\/\/[^<^\s]+)/', array(__CLASS__, 'linkHref'), $html);
}
public static function convertHeadings($html)
......@@ -134,6 +134,7 @@ class Utilities
return;
}
$course_numbers = array();
preg_match_all('/0?([0-9]{2,4}[A-Z]?)/', $matches[0], $course_numbers);
foreach ($course_numbers[0] as $course_number) {
......@@ -161,7 +162,7 @@ class Utilities
foreach (self::findCourses($text) as $subject_code => $courses) {
try {
$subject = new UNL_Services_CourseApproval_SubjectArea($subject_code);
$subject = new \UNL_Services_CourseApproval_SubjectArea($subject_code);
foreach ($courses as $course) {
try {
// try and get the listing
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment