Ease the walking over the paginated urls by also allowing full-facebook ... #26

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −0
Split
View
@@ -1018,6 +1018,9 @@ protected function getUrl($name, $path='', $params=array()) {
if ($path[0] === '/') {
$path = substr($path, 1);
}
+ else if (substr($path, 0, 8) === 'https://') {
+ $path = preg_replace('/^https:\/\/[a-z-]*\.facebook\.com\//', '', $path);
+ }
$url .= $path;
}
if ($params) {