Updated meta extension
This commit is contained in:
parent
01455e0c89
commit
6e1a04cb53
2 changed files with 4 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
// Meta extension, https://github.com/datenstrom/yellow-extensions/tree/master/features/meta
|
||||
// Copyright (c) 2013-2019 Datenstrom, https://datenstrom.se
|
||||
// Copyright (c) 2013-2020 Datenstrom, https://datenstrom.se
|
||||
// This file may be used and distributed under the terms of the public license.
|
||||
|
||||
class YellowMeta {
|
||||
const VERSION = "0.8.9";
|
||||
const VERSION = "0.8.10";
|
||||
const TYPE = "feature";
|
||||
public $yellow; //access to API
|
||||
|
||||
|
@ -55,7 +55,7 @@ class YellowMeta {
|
|||
// Handle page output data
|
||||
public function onParsePageOutput($page, $text) {
|
||||
$output = null;
|
||||
if ($text && preg_match("/^(.*)<html(.*?)>(.*)$/s", $text, $matches)) {
|
||||
if ($text && preg_match("/^(.*?)<html(.*?)>(.*)$/s", $text, $matches)) {
|
||||
$output = $matches[1]."<html".$matches[2]." prefix=\"og: http://ogp.me/ns#\">".$matches[3];
|
||||
}
|
||||
return $output;
|
||||
|
|
|
@ -46,6 +46,7 @@ CoreDownloadExtension: .download
|
|||
CoreTextFile: text.ini
|
||||
CoreLogFile: yellow.log
|
||||
UpdateExtensionUrl: https://github.com/datenstrom/yellow-extensions
|
||||
UpdateExtensionDir: /Users/yourname/Documents/GitHub/
|
||||
UpdateExtensionFile: extension.ini
|
||||
UpdateVersionFile: version.ini
|
||||
UpdateWaffleFile: waffle.ini
|
||||
|
|
Loading…
Add table
Reference in a new issue