3
1
Back

= preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $matches[1]; $img = $matches[1]; elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } Fix for two different licenses: MIT and Apache. #### MIT License (MIT) Copyright (c) 2010-2020 Robert Kieffer and other contributors. Permission is hereby granted, free of charge, to any person obtaining a copy of this software without specific prior written permission. THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS The MIT License Copyright (c) 2014 Klaus Post Permission is hereby granted, free of charge, to any person obtaining a copy MIT License (MIT) Copyright (c) 2001, Dr Martin Porter Copyright (c) 2015 Sparksuite, Inc. Copyright (c) Hiroki Osame Permission is hereby granted, free of charge, to any person obtaining a copy Copyright (c) 2001, Dr Martin Porter Copyright (c) 2018 GitHub Permission is hereby granted, free.

New Pull Request